/libcore/ojluni/src/main/java/java/nio/file/spi/ |
D | FileSystemProvider.java | 384 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/ |
D | SecureDirectoryStream.java | 148 SeekableByteChannel newByteChannel(T path, in newByteChannel() method
|
D | Files.java | 356 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/ |
D | DefaultSecureDirectoryStreamTest.java | 209 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()
|
D | DefaultFileSystemProviderTest.java | 294 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()
|
D | FilesTest.java | 114 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()
|
D | Files2Test.java | 1170 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 …]
|
D | DefaultFileSystemProvider2Test.java | 593 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/ |
D | MockFileSystemProvider.java | 65 public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, in newByteChannel() method in MockFileSystemProvider
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixFileStore.java | 259 try (ReadableByteChannel rbc = Files.newByteChannel(file)) { in loadProperties()
|
D | UnixSecureDirectoryStream.java | 153 public SeekableByteChannel newByteChannel(Path obj, in newByteChannel() method in UnixSecureDirectoryStream
|
D | UnixFileSystemProvider.java | 203 public SeekableByteChannel newByteChannel(Path obj, in newByteChannel() method in UnixFileSystemProvider
|