diff options
author | mikaelpeltier <mikaelpeltier@google.com> | 2015-03-23 09:11:11 +0100 |
---|---|---|
committer | mikaelpeltier <mikaelpeltier@google.com> | 2015-03-23 10:58:35 +0100 |
commit | d114084922f839f36d5c6d98e2f250e11eacc39d (patch) | |
tree | a8bd2bbee1e546819faa137e9df75347dcfe6c8c /sched/tests/com | |
parent | feecce3a2b4e569a6d5aa97222ded0e6c14e696f (diff) | |
download | toolchain_jack-d114084922f839f36d5c6d98e2f250e11eacc39d.zip toolchain_jack-d114084922f839f36d5c6d98e2f250e11eacc39d.tar.gz toolchain_jack-d114084922f839f36d5c6d98e2f250e11eacc39d.tar.bz2 |
Add InputStreamProvider and OutputStreamProvider
- Add common interface between VFile and StreamFile that will
allow to read or write them.
Change-Id: I1721932c7e68770edae53a431d4a9a3ca664ae72
Diffstat (limited to 'sched/tests/com')
-rw-r--r-- | sched/tests/com/android/sched/vfs/VFSTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sched/tests/com/android/sched/vfs/VFSTest.java b/sched/tests/com/android/sched/vfs/VFSTest.java index b463cb0..23953fc 100644 --- a/sched/tests/com/android/sched/vfs/VFSTest.java +++ b/sched/tests/com/android/sched/vfs/VFSTest.java @@ -803,14 +803,14 @@ public class VFSTest { } private void writeToFile(@Nonnull OutputVFile file, @Nonnull String string) throws IOException { - OutputStreamWriter writer = new OutputStreamWriter(file.openWrite()); + OutputStreamWriter writer = new OutputStreamWriter(file.getOutputStream()); writer.write(string); writer.close(); } @Nonnull private String readFromFile(@Nonnull InputVFile file) throws IOException { - BufferedReader reader = new BufferedReader(new InputStreamReader(file.openRead())); + BufferedReader reader = new BufferedReader(new InputStreamReader(file.getInputStream())); String string = reader.readLine(); Assert.assertNull(reader.readLine()); reader.close(); |