From cd0bba1a17ae2d644b1fd06bc09a5db80f60b5a4 Mon Sep 17 00:00:00 2001 From: mikaelpeltier Date: Mon, 30 Mar 2015 09:19:13 +0200 Subject: Add HasLocation to stream providers Change-Id: Id1173260f85926508ac8ff12dbc4faec601e2fcd --- sched/src/com/android/sched/vfs/InputStreamProvider.java | 3 ++- sched/src/com/android/sched/vfs/OutputStreamProvider.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'sched') diff --git a/sched/src/com/android/sched/vfs/InputStreamProvider.java b/sched/src/com/android/sched/vfs/InputStreamProvider.java index ec5838b..93bb3a2 100644 --- a/sched/src/com/android/sched/vfs/InputStreamProvider.java +++ b/sched/src/com/android/sched/vfs/InputStreamProvider.java @@ -17,6 +17,7 @@ package com.android.sched.vfs; import com.android.sched.util.file.WrongPermissionException; +import com.android.sched.util.location.HasLocation; import java.io.InputStream; @@ -25,7 +26,7 @@ import javax.annotation.Nonnull; /** * Provider of {@link InputStream}. */ -public interface InputStreamProvider { +public interface InputStreamProvider extends HasLocation { @Nonnull InputStream getInputStream() throws WrongPermissionException; diff --git a/sched/src/com/android/sched/vfs/OutputStreamProvider.java b/sched/src/com/android/sched/vfs/OutputStreamProvider.java index 00970e0..aed2716 100644 --- a/sched/src/com/android/sched/vfs/OutputStreamProvider.java +++ b/sched/src/com/android/sched/vfs/OutputStreamProvider.java @@ -17,6 +17,7 @@ package com.android.sched.vfs; import com.android.sched.util.file.WrongPermissionException; +import com.android.sched.util.location.HasLocation; import java.io.OutputStream; import java.io.PrintStream; @@ -26,7 +27,7 @@ import javax.annotation.Nonnull; /** * Provider of {@link OutputStreamProvider}. */ -public interface OutputStreamProvider { +public interface OutputStreamProvider extends HasLocation { @Nonnull OutputStream getOutputStream() throws WrongPermissionException; -- cgit v1.1