Home
last modified time | relevance | path

Searched refs:newByteChannel (Results 1 – 12 of 12) sorted by relevance

/libcore/ojluni/src/main/java/java/nio/file/spi/
DFileSystemProvider.java384 return Channels.newInputStream(Files.newByteChannel(path, options)); in newInputStream()
434 return Channels.newOutputStream(newByteChannel(path, opts)); in newOutputStream()
565 public abstract SeekableByteChannel newByteChannel(Path path, in newByteChannel() method in FileSystemProvider
/libcore/ojluni/src/main/java/java/nio/file/
DSecureDirectoryStream.java148 SeekableByteChannel newByteChannel(T path, in newByteChannel() method
DFiles.java356 public static SeekableByteChannel newByteChannel(Path path,
361 return provider(path).newByteChannel(path, options, attrs);
402 public static SeekableByteChannel newByteChannel(Path path, OpenOption... options)
407 return newByteChannel(path, set);
632 newByteChannel(path, options, attrs).close();
3152 try (SeekableByteChannel sbc = Files.newByteChannel(path);
/libcore/luni/src/test/java/libcore/java/nio/file/
DDefaultSecureDirectoryStreamTest.java209 try (SeekableByteChannel sbc = ds_path_root.newByteChannel(filesSetup.getTestPath(), in test_newByteChannel()
218 try (SeekableByteChannel sbc = ds_path_root.newByteChannel( in test_newByteChannel()
227 try (SeekableByteChannel sbc = ds_path_root.newByteChannel( in test_newByteChannel()
239 try (SeekableByteChannel sbc = ds_path_root.newByteChannel( in test_newByteChannel()
251 try (SeekableByteChannel sbc = ds_path_root.newByteChannel(null, set)) { in test_newByteChannel_NPE()
256 try (SeekableByteChannel sbc = ds_path_root.newByteChannel(filesSetup.getDataFilePath(), in test_newByteChannel_NPE()
DDefaultFileSystemProviderTest.java294 try (SeekableByteChannel sbc = provider.newByteChannel(filesSetup.getTestPath(), set)) { in test_newByteChannel()
303 try (SeekableByteChannel sbc = provider.newByteChannel(filesSetup.getDataFilePath(), set)) { in test_newByteChannel()
310 try (SeekableByteChannel sbc = provider.newByteChannel(filesSetup.getDataFilePath(), set)) { in test_newByteChannel()
330 try (SeekableByteChannel sbc = provider.newByteChannel(filesSetup.getTestPath(), set)) { in test_newByteChannel_openOption_WRITE()
338 try (SeekableByteChannel sbc = provider.newByteChannel(filesSetup.getDataFilePath(), set)) { in test_newByteChannel_openOption_WRITE()
345 try (SeekableByteChannel sbc = provider.newByteChannel(filesSetup.getDataFilePath(), set)) { in test_newByteChannel_openOption_WRITE()
367 try (SeekableByteChannel sbc = provider.newByteChannel(filesSetup.getDataFilePath(), set)) { in test_newByteChannel_openOption_WRITE_READ()
389 try (SeekableByteChannel sbc = provider.newByteChannel(null, set)) { in test_newByteChannel_NPE()
394 .newByteChannel(filesSetup.getDataFilePath(), null)) { in test_newByteChannel_NPE()
DFilesTest.java114 when(mockFileSystemProvider.newByteChannel(mockPath, openOptions)).thenReturn(sfc); in test_newByteChannel()
116 assertSame(sfc, Files.newByteChannel(mockPath, READ)); in test_newByteChannel()
118 verify(mockFileSystemProvider).newByteChannel(mockPath, openOptions); in test_newByteChannel()
DFiles2Test.java1170 try (SeekableByteChannel sbc = Files.newByteChannel(filesSetup.getTestPath())) { in test_newByteChannel()
1178 try (SeekableByteChannel sbc = Files.newByteChannel(filesSetup.getDataFilePath())) { in test_newByteChannel()
1185 try (SeekableByteChannel sbc = Files.newByteChannel(filesSetup.getDataFilePath())) { in test_newByteChannel()
1198 try (SeekableByteChannel sbc = Files.newByteChannel(filesSetup.getTestPath(), WRITE)) { in test_newByteChannel_openOption_WRITE()
1205 try (SeekableByteChannel sbc = Files.newByteChannel(filesSetup.getDataFilePath(), WRITE)) { in test_newByteChannel_openOption_WRITE()
1212 try (SeekableByteChannel sbc = Files.newByteChannel(filesSetup.getDataFilePath(), WRITE)) { in test_newByteChannel_openOption_WRITE()
1227 try (SeekableByteChannel sbc = Files.newByteChannel(filesSetup.getDataFilePath(), WRITE, in test_newByteChannel_openOption_WRITE_READ()
1249 try (SeekableByteChannel sbc = Files.newByteChannel(null)) { in test_newByteChannel_NPE()
1253 try (SeekableByteChannel sbc = Files.newByteChannel(filesSetup.getDataFilePath(), in test_newByteChannel_NPE()
1808 Files.newByteChannel(mockPath, stubSet, stubFileAttribute); in test_newByteChannel$Path$Set_OpenOption$FileAttributes()
[all …]
DDefaultFileSystemProvider2Test.java593 provider.newByteChannel(null, new HashSet<>(), new MockFileAttribute<>()); in test_newFileChannel_NPE()
598 provider.newByteChannel(filesSetup.getTestPath(), null, new MockFileAttribute<>()); in test_newFileChannel_NPE()
603 provider.newByteChannel(filesSetup.getTestPath(), new HashSet<>(), in test_newFileChannel_NPE()
/libcore/luni/src/test/filesystems/src/mypackage/
DMockFileSystemProvider.java65 public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, in newByteChannel() method in MockFileSystemProvider
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixFileStore.java259 try (ReadableByteChannel rbc = Files.newByteChannel(file)) { in loadProperties()
DUnixSecureDirectoryStream.java153 public SeekableByteChannel newByteChannel(Path obj, in newByteChannel() method in UnixSecureDirectoryStream
DUnixFileSystemProvider.java203 public SeekableByteChannel newByteChannel(Path obj, in newByteChannel() method in UnixFileSystemProvider