Searched refs:TRUNCATE_EXISTING (Results 1 - 10 of 10) sorted by relevance

/openjdk7/jdk/src/share/classes/java/nio/file/
H A DStandardOpenOption.java59 TRUNCATE_EXISTING, enum constant in enum:StandardOpenOption
/openjdk7/jdk/test/java/nio/channels/FileChannel/
H A DInterruptDeadlock.java87 try (FileChannel fc = FileChannel.open(file, CREATE, TRUNCATE_EXISTING, WRITE)) {
/openjdk7/jdk/src/windows/classes/sun/nio/fs/
H A DWindowsConstants.java52 public static final int TRUNCATE_EXISTING = 5; field in class:WindowsConstants
H A DWindowsChannelFactory.java92 case TRUNCATE_EXISTING : flags.truncateExisting = true; break;
157 throw new IllegalArgumentException("APPEND + TRUNCATE_EXISTING not allowed");
255 // corresponds to CREATE + TRUNCATE_EXISTING so we use
260 dwCreationDisposition = TRUNCATE_EXISTING;
317 // truncate file (for CREATE + TRUNCATE_EXISTING case)
H A DWindowsUserDefinedFileAttributeView.java306 opts.add(StandardOpenOption.TRUNCATE_EXISTING);
/openjdk7/jdk/test/java/nio/file/Files/
H A DSBC.java190 // test TRUNCATE_EXISTING option
200 try (SeekableByteChannel sbc = Files.newByteChannel(file, WRITE, TRUNCATE_EXISTING)) {
211 try (SeekableByteChannel sbc = Files.newByteChannel(file, WRITE, CREATE, TRUNCATE_EXISTING)) {
358 Files.newByteChannel(file, WRITE, APPEND, TRUNCATE_EXISTING);
/openjdk7/jdk/src/share/classes/java/nio/file/spi/
H A DFileSystemProvider.java421 opts.add(StandardOpenOption.TRUNCATE_EXISTING);
/openjdk7/jdk/src/solaris/classes/sun/nio/fs/
H A DUnixChannelFactory.java76 case TRUNCATE_EXISTING : flags.truncateExisting = true; break;
134 throw new IllegalArgumentException("APPEND + TRUNCATE_EXISTING not allowed");
/openjdk7/jdk/test/java/nio/channels/AsynchronousFileChannel/
H A DBasic.java383 .open(file, WRITE, TRUNCATE_EXISTING);
491 .open(file, CREATE, WRITE, TRUNCATE_EXISTING);
/openjdk7/jdk/test/tools/launcher/
H A DTestHelper.java345 Charset.defaultCharset(), CREATE, TRUNCATE_EXISTING, WRITE);

Completed in 41 milliseconds