/openjdk7/jdk/test/java/nio/file/Files/ |
H A D | SBC.java | 26 * @summary Unit test for java.nio.file.Files.newByteChannel 78 Files.newByteChannel(file, CREATE, WRITE).close(); 83 Files.newByteChannel(file, CREATE, WRITE).close(); 90 Files.newByteChannel(link, CREATE, WRITE).close(); 94 Files.newByteChannel(link, CREATE, WRITE).close(); 110 Files.newByteChannel(file, CREATE_NEW, WRITE).close(); 117 Files.newByteChannel(file, CREATE_NEW, WRITE); 131 Files.newByteChannel(file, CREATE_NEW, WRITE); 148 try (SeekableByteChannel sbc = Files.newByteChannel(file, CREATE_NEW, WRITE, SPARSE)) { 166 try (SeekableByteChannel sbc = Files.newByteChannel(fil [all...] |
H A D | DeleteOnClose.java | 34 Files.newByteChannel(Paths.get(args[0]), READ, WRITE, DELETE_ON_CLOSE); 38 Files.newByteChannel(file, READ, WRITE, DELETE_ON_CLOSE).close(); 51 Files.newByteChannel(link, READ, WRITE, DELETE_ON_CLOSE); 66 secure.newByteChannel(file, opts).close();
|
H A D | TemporaryFiles.java | 65 Files.newByteChannel(file, READ).close(); 66 Files.newByteChannel(file, WRITE).close(); 67 Files.newByteChannel(file, READ,WRITE).close(); 113 Files.newByteChannel(file, READ,WRITE).close();
|
H A D | CheckPermissions.java | 407 // -- newByteChannel -- 410 try (SeekableByteChannel sbc = newByteChannel(file)) { 414 try (SeekableByteChannel sbc = newByteChannel(file, WRITE)) { 418 try (SeekableByteChannel sbc = newByteChannel(file, READ, WRITE)) { 424 try (SeekableByteChannel sbc = newByteChannel(file, DELETE_ON_CLOSE)) { 453 // newByteChannel 456 try (SeekableByteChannel sbc = sds.newByteChannel(entry, EnumSet.of(READ))) { 460 try (SeekableByteChannel sbc = sds.newByteChannel(entry, EnumSet.of(WRITE))) {
|
H A D | PassThroughFileSystem.java | 318 public SeekableByteChannel newByteChannel(Path file, method in class:PassThroughFileSystem.PassThroughProvider 323 return Files.newByteChannel(unwrap(file), options, attrs);
|
/openjdk7/jdk/src/share/classes/java/nio/file/ |
H A D | SecureDirectoryStream.java | 105 * Files#newByteChannel Files.newByteChannel} method for the 109 * defined by the {@code Files.newByteChannel} method, the {@link 146 SeekableByteChannel newByteChannel(T path, method in interface:SecureDirectoryStream
|
H A D | Files.java | 118 * by the {@link #newByteChannel(Path,Set,FileAttribute[]) newByteChannel} 265 * ReadableByteChannel rbc = Files.newByteChannel(path, EnumSet.of(READ))); 269 * WritableByteChannel wbc = Files.newByteChannel(path, EnumSet.of(CREATE,APPEND)); 273 * SeekableByteChannel sbc = Files.newByteChannel(path, EnumSet.of(CREATE_NEW,READ,WRITE), perms); 310 public static SeekableByteChannel newByteChannel(Path path, method in class:Files 315 return provider(path).newByteChannel(path, options, attrs); 323 * by the {@link #newByteChannel(Path,Set,FileAttribute[]) newByteChannel} 356 public static SeekableByteChannel newByteChannel(Pat method in class:Files [all...] |
/openjdk7/jdk/test/java/nio/file/DirectoryStream/ |
H A D | SecureDS.java | 136 // Test: newByteChannel 138 stream.newByteChannel(fileEntry, opts).close(); 140 stream.newByteChannel(link1Entry, opts).close(); 145 stream.newByteChannel(link1Entry, mixed).close(); 261 stream.newByteChannel(null, EnumSet.of(CREATE,WRITE)); 265 stream.newByteChannel(null, EnumSet.of(CREATE,WRITE,null)); 269 stream.newByteChannel(file, null); 307 stream.newByteChannel(file, EnumSet.of(READ));
|
/openjdk7/jdk/src/share/classes/java/nio/file/spi/ |
H A D | FileSystemProvider.java | 349 * as if by invoking the {@link #newByteChannel} method and constructs a 380 return Channels.newInputStream(Files.newByteChannel(path)); 389 * as if by invoking the {@link #newByteChannel} method and constructs a 430 return Channels.newOutputStream(newByteChannel(path, opts)); 527 * Files#newByteChannel(Path,Set,FileAttribute[])} method. 561 public abstract SeekableByteChannel newByteChannel(Path path, method in class:FileSystemProvider
|
/openjdk7/jdk/test/java/nio/file/spi/ |
H A D | TestProvider.java | 147 public SeekableByteChannel newByteChannel(Path file, method in class:TestProvider
|
/openjdk7/jdk/src/share/demo/nio/zipfs/ |
H A D | Demo.java | 621 try (SeekableByteChannel chSrc = Files.newByteChannel(src); 622 SeekableByteChannel chDst = Files.newByteChannel(dst)) 685 try (SeekableByteChannel srcCh = Files.newByteChannel(src, read); 686 SeekableByteChannel dstCh = Files.newByteChannel(dst, openwrite))
|
/openjdk7/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/ |
H A D | ZipFileSystemProvider.java | 250 public SeekableByteChannel newByteChannel(Path path, method in class:ZipFileSystemProvider 255 return toZipPath(path).newByteChannel(options, attrs);
|
H A D | ZipPath.java | 735 SeekableByteChannel newByteChannel(Set<? extends OpenOption> options, method in class:ZipPath 739 return zfs.newByteChannel(getResolvedPath(), options, attrs);
|
H A D | ZipFileSystem.java | 129 this.ch = Files.newByteChannel(zfpath, READ); 567 SeekableByteChannel newByteChannel(byte[] path, method in class:ZipFileSystem 1301 ch = zfpath.newByteChannel(READ); // re-fresh "ch" and "cen"
|
/openjdk7/jdk/test/demo/zipfs/ |
H A D | ZipFSTester.java | 529 try (SeekableByteChannel chSrc = Files.newByteChannel(src); 530 SeekableByteChannel chDst = Files.newByteChannel(dst)) 611 try (SeekableByteChannel srcCh = Files.newByteChannel(src, read); 612 SeekableByteChannel dstCh = Files.newByteChannel(dst, openwrite)) 662 try (SeekableByteChannel sbc = Files.newByteChannel(path)) {
|
/openjdk7/jdk/src/solaris/classes/sun/nio/fs/ |
H A D | UnixFileStore.java | 258 try (ReadableByteChannel rbc = Files.newByteChannel(file)) {
|
H A D | UnixFileSystemProvider.java | 203 public SeekableByteChannel newByteChannel(Path obj, method in class:UnixFileSystemProvider
|
H A D | UnixSecureDirectoryStream.java | 137 public SeekableByteChannel newByteChannel(Path obj, method in class:UnixSecureDirectoryStream
|
/openjdk7/jdk/src/windows/classes/sun/nio/fs/ |
H A D | WindowsFileSystemProvider.java | 215 public SeekableByteChannel newByteChannel(Path obj, method in class:WindowsFileSystemProvider
|