| Modifier and Type | Field and Description |
|---|---|
| public static final ExtendedOpenOption | DIRECT
Requires that direct I/O be used for read or write access. |
| public static final ExtendedOpenOption | NOSHARE_DELETE
Prevent operations on the file that request delete access. |
| public static final ExtendedOpenOption | NOSHARE_READ
Prevent operations on the file that request read access. |
| public static final ExtendedOpenOption | NOSHARE_WRITE
Prevent operations on the file that request write access. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ExtendedOpenOption | |
| public static ExtendedOpenOption[] |
| DIRECT | back to summary |
|---|---|
| public static final ExtendedOpenOption DIRECT 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 API Note The DIRECT option enables performing file I/O directly between user buffers and the file thereby circumventing the operating system page cache and possibly avoiding the thrashing which could otherwise occur in I/O-intensive applications. This option may be of benefit to applications which do their own caching or do random I/O operations on large data sets. It is likely to provide the most benefit when the file is stored on a device which has high I/O throughput capacity. The option should be used with caution however as in general it is likely to degrade performance. The performance effects of using it should be evaluated in each particular circumstance.
| |
| NOSHARE_DELETE | back to summary |
|---|---|
| public static final ExtendedOpenOption NOSHARE_DELETE Prevent operations on the file that request delete access. | |
| NOSHARE_READ | back to summary |
|---|---|
| public static final ExtendedOpenOption NOSHARE_READ Prevent operations on the file that request read access. | |
| NOSHARE_WRITE | back to summary |
|---|---|
| public static final ExtendedOpenOption NOSHARE_WRITE Prevent operations on the file that request write access. | |
| ExtendedOpenOption | back to summary |
|---|---|
| private ExtendedOpenOption(FileSystemOption<Void> option) | |
| valueOf | back to summary |
|---|---|
| public static ExtendedOpenOption valueOf(String name) | |
| values | back to summary |
|---|---|
| public static ExtendedOpenOption[] values() | |