Searched refs:DELETE_ON_CLOSE (Results 1 - 5 of 5) sorted by relevance

/openjdk7/jdk/src/share/classes/java/nio/file/
H A DStandardOpenOption.java100 DELETE_ON_CLOSE, enum constant in enum:StandardOpenOption
/openjdk7/jdk/test/java/nio/file/Files/
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();
44 // check that DELETE_ON_CLOSE fails when file is a sym link
51 Files.newByteChannel(link, READ, WRITE, DELETE_ON_CLOSE);
56 // check that DELETE_ON_CLOSE works with files created via open
65 opts.add(DELETE_ON_CLOSE);
H A DCheckPermissions.java424 try (SeekableByteChannel sbc = newByteChannel(file, DELETE_ON_CLOSE)) {
/openjdk7/jdk/src/windows/classes/sun/nio/fs/
H A DWindowsChannelFactory.java95 case DELETE_ON_CLOSE : flags.deleteOnClose = true; break;
/openjdk7/jdk/src/solaris/classes/sun/nio/fs/
H A DUnixChannelFactory.java79 case DELETE_ON_CLOSE : flags.deleteOnClose = true; break;
225 throw new UnixException("DELETE_ON_CLOSE specified and file is a symbolic link");

Completed in 81 milliseconds