diff options
author | mikaelpeltier <mikaelpeltier@google.com> | 2015-03-23 10:30:22 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-03-23 10:30:23 +0000 |
commit | 9ecf4b02965abc736a1fa94c1cb11e564c45717b (patch) | |
tree | 97fa174f7eebc274922309f73a872f3bce2d227b /sched/src/com/android/sched/vfs/OutputStreamProvider.java | |
parent | 388f8ecf4a1a853cfd59087ab2bfaaff0556e8fe (diff) | |
parent | d114084922f839f36d5c6d98e2f250e11eacc39d (diff) | |
download | toolchain_jack-9ecf4b02965abc736a1fa94c1cb11e564c45717b.tar.gz toolchain_jack-9ecf4b02965abc736a1fa94c1cb11e564c45717b.tar.bz2 toolchain_jack-9ecf4b02965abc736a1fa94c1cb11e564c45717b.zip |
Merge "Add InputStreamProvider and OutputStreamProvider" into ub-jack
Diffstat (limited to 'sched/src/com/android/sched/vfs/OutputStreamProvider.java')
-rw-r--r-- | sched/src/com/android/sched/vfs/OutputStreamProvider.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sched/src/com/android/sched/vfs/OutputStreamProvider.java b/sched/src/com/android/sched/vfs/OutputStreamProvider.java new file mode 100644 index 00000000..00970e0b --- /dev/null +++ b/sched/src/com/android/sched/vfs/OutputStreamProvider.java @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2015 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.android.sched.vfs; + +import com.android.sched.util.file.WrongPermissionException; + +import java.io.OutputStream; +import java.io.PrintStream; + +import javax.annotation.Nonnull; + +/** + * Provider of {@link OutputStreamProvider}. + */ +public interface OutputStreamProvider { + + @Nonnull + OutputStream getOutputStream() throws WrongPermissionException; + + @Nonnull + PrintStream getPrintStream() throws WrongPermissionException; +} |