Home
last modified time | relevance | path

Searched refs:newInputStream (Results 1 – 18 of 18) sorted by relevance

/libcore/luni/src/test/java/libcore/java/nio/file/
DDefaultFileSystemProviderTest.java92 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), READ)) { in test_newInputStream()
100 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), WRITE)) { in test_newInputStream_openOption()
105 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), APPEND)) { in test_newInputStream_openOption()
110 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), in test_newInputStream_openOption()
117 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), DELETE_ON_CLOSE, in test_newInputStream_openOption()
125 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), READ); in test_newInputStream_twice()
127 InputStream is2 = provider.newInputStream(filesSetup.getDataFilePath(), READ)) { in test_newInputStream_twice()
136 try (InputStream is = provider.newInputStream(null)){ in test_newInputStream_NPE()
140 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), in test_newInputStream_NPE()
152 try (InputStream is = provider.newInputStream(filesSetup.getTestPath())) { in test_newOutputStream()
[all …]
DFilesTest.java88 when(mockFileSystemProvider.newInputStream(mockPath, READ)).thenReturn(is); in test_newInputStream()
90 assertSame(is, Files.newInputStream(mockPath, READ)); in test_newInputStream()
92 verify(mockFileSystemProvider).newInputStream(mockPath, READ); in test_newInputStream()
DFilesSetup.java154 InputStream is = Files.newInputStream(file); in readFromFile()
DFiles2Test.java1216 try (InputStream is = Files.newInputStream(filesSetup.getDataFilePath())) { in test_newByteChannel_openOption_WRITE()
1240 try (InputStream is = Files.newInputStream(filesSetup.getDataFilePath())) { in test_newByteChannel_openOption_WRITE_READ()
/libcore/ojluni/src/test/java/nio/channels/Channels/
DReadByte.java55 InputStream in = Channels.newInputStream(channel); in main()
DReadOffset.java54 InputStream in = Channels.newInputStream(rbc); in testReadOffset()
DBasic2.java60 Reader reader = new Reader(Channels.newInputStream(ch2)); in basic2Test()
DBasic.java64 Channels.newInputStream((ReadableByteChannel)null); in test()
256 InputStream is = Channels.newInputStream(fc); in testNewInputStream()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DChannelsTest.java45 Channels.newInputStream(sourceChannel).read(); in testStreamNonBlocking()
75 InputStream is = Channels.newInputStream(abc); in testInputStreamAsynchronousByteChannel()
/libcore/ojluni/src/main/java/java/nio/file/spi/
DFileSystemProvider.java373 public InputStream newInputStream(Path path, OpenOption... options) in newInputStream() method in FileSystemProvider
384 return Channels.newInputStream(Files.newByteChannel(path, options)); in newInputStream()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DChannelsTest.java173 InputStream ins = Channels.newInputStream(rbChannel); in testNewChannelInputStream()
279 InputStream testins = Channels.newInputStream((ReadableByteChannel) null); in testNewInputStreamReadableByteChannel_InputNull()
294 InputStream testins = Channels.newInputStream(readbc); in testNewInputStreamReadableByteChannel()
615 Channels.newInputStream(sc).read(); in test_newReader_LReadableByteChannel_LString()
/libcore/ojluni/src/main/java/java/nio/file/
DCopyMoveHelper.java125 try (InputStream in = Files.newInputStream(source)) { in copyToForeignTarget()
DFiles.java149 public static InputStream newInputStream(Path path, OpenOption... options)
152 return provider(path).newInputStream(path, options);
2784 Reader reader = new InputStreamReader(newInputStream(path), decoder);
3068 try (InputStream in = newInputStream(source)) {
3153 InputStream in = Channels.newInputStream(sbc)) {
/libcore/ojluni/src/main/java/java/nio/channels/
DChannels.java120 public static InputStream newInputStream(ReadableByteChannel ch) { in newInputStream() method in Channels
199 public static InputStream newInputStream(AsynchronousByteChannel ch) { in newInputStream() method
/libcore/ojluni/src/test/java/util/Properties/
DLoadAndStoreXML.java236 try (InputStream in = Files.newInputStream(file)) { in testLoadWithMalformedDoc()
/libcore/ojluni/src/main/java/java/time/chrono/
DHijrahChronology.java845 return Files.newInputStream(CONF_PATH.resolve(resourceName), in readConfigProperties()
/libcore/ojluni/src/main/java/java/util/
DScanner.java627 return makeReadable(Files.newInputStream(source), charset); in makeReadable()
728 this(Files.newInputStream(source)); in Scanner()
/libcore/api/
Dcurrent.txt6706 method public static java.io.InputStream newInputStream(java.nio.channels.ReadableByteChannel);
6707 …method public static java.io.InputStream newInputStream(java.nio.channels.AsynchronousByteChannel);
7406 …method public static java.io.InputStream newInputStream(java.nio.file.Path, java.nio.file.OpenOpti…
7805 …method public java.io.InputStream newInputStream(java.nio.file.Path, java.nio.file.OpenOption...) …