Searched refs:newByteChannel (Results 1 - 19 of 19) sorted by relevance

/openjdk7/jdk/test/java/nio/file/Files/
H A DSBC.java26 * @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 DDeleteOnClose.java34 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 DTemporaryFiles.java65 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 DCheckPermissions.java407 // -- 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 DPassThroughFileSystem.java318 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 DSecureDirectoryStream.java105 * 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 DFiles.java118 * 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 DSecureDS.java136 // 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 DFileSystemProvider.java349 * 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 DTestProvider.java147 public SeekableByteChannel newByteChannel(Path file, method in class:TestProvider
/openjdk7/jdk/src/share/demo/nio/zipfs/
H A DDemo.java621 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 DZipFileSystemProvider.java250 public SeekableByteChannel newByteChannel(Path path, method in class:ZipFileSystemProvider
255 return toZipPath(path).newByteChannel(options, attrs);
H A DZipPath.java735 SeekableByteChannel newByteChannel(Set<? extends OpenOption> options, method in class:ZipPath
739 return zfs.newByteChannel(getResolvedPath(), options, attrs);
H A DZipFileSystem.java129 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 DZipFSTester.java529 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 DUnixFileStore.java258 try (ReadableByteChannel rbc = Files.newByteChannel(file)) {
H A DUnixFileSystemProvider.java203 public SeekableByteChannel newByteChannel(Path obj, method in class:UnixFileSystemProvider
H A DUnixSecureDirectoryStream.java137 public SeekableByteChannel newByteChannel(Path obj, method in class:UnixSecureDirectoryStream
/openjdk7/jdk/src/windows/classes/sun/nio/fs/
H A DWindowsFileSystemProvider.java215 public SeekableByteChannel newByteChannel(Path obj, method in class:WindowsFileSystemProvider

Completed in 51 milliseconds