< prev index next >
src/jdk.unsupported/share/classes/com/sun/nio/file/ExtendedOpenOption.java
Print this page
*** 24,34 ****
*/
package com.sun.nio.file;
import java.nio.file.OpenOption;
! import sun.nio.fs.ExtendedOptions;
/**
* Defines <em>extended</em> open options supported on some platforms
* by Sun's provider implementation.
*
--- 24,34 ----
*/
package com.sun.nio.file;
import java.nio.file.OpenOption;
! import jdk.internal.unsupported.FileSystemOption;
/**
* Defines <em>extended</em> open options supported on some platforms
* by Sun's provider implementation.
*
*** 37,55 ****
public enum ExtendedOpenOption implements OpenOption {
/**
* Prevent operations on the file that request read access.
*/
! NOSHARE_READ(ExtendedOptions.NOSHARE_READ),
/**
* Prevent operations on the file that request write access.
*/
! NOSHARE_WRITE(ExtendedOptions.NOSHARE_WRITE),
/**
* Prevent operations on the file that request delete access.
*/
! NOSHARE_DELETE(ExtendedOptions.NOSHARE_DELETE),
/**
* Requires that direct I/O be used for read or write access.
* Attempting to open a file with this option set will result in
* an {@code UnsupportedOperationException} if the operating system or
--- 37,55 ----
public enum ExtendedOpenOption implements OpenOption {
/**
* Prevent operations on the file that request read access.
*/
! NOSHARE_READ(FileSystemOption.NOSHARE_READ),
/**
* Prevent operations on the file that request write access.
*/
! NOSHARE_WRITE(FileSystemOption.NOSHARE_WRITE),
/**
* Prevent operations on the file that request delete access.
*/
! NOSHARE_DELETE(FileSystemOption.NOSHARE_DELETE),
/**
* Requires that direct I/O be used for read or write access.
* Attempting to open a file with this option set will result in
* an {@code UnsupportedOperationException} if the operating system or
*** 67,77 ****
* likely to degrade performance. The performance effects of using it
* should be evaluated in each particular circumstance.
*
* @since 10
*/
! DIRECT(ExtendedOptions.DIRECT);
! ExtendedOpenOption(ExtendedOptions.InternalOption<Void> option) {
option.register(this);
}
}
--- 67,77 ----
* likely to degrade performance. The performance effects of using it
* should be evaluated in each particular circumstance.
*
* @since 10
*/
! DIRECT(FileSystemOption.DIRECT);
! ExtendedOpenOption(FileSystemOption<Void> option) {
option.register(this);
}
}
< prev index next >