StandardOpenOption
public
final
enum
StandardOpenOption
extends Enum<StandardOpenOption>
implements
OpenOption
| java.lang.Object | ||
| ↳ | java.lang.Enum<java.nio.file.StandardOpenOption> | |
| ↳ | java.nio.file.StandardOpenOption | |
Defines the standard open options.
Summary
Enum values | |
|---|---|
StandardOpenOption |
APPEND
If the file is opened for |
StandardOpenOption |
CREATE
Create a new file if it does not exist. |
StandardOpenOption |
CREATE_NEW
Create a new file, failing if the file already exists. |
StandardOpenOption |
DELETE_ON_CLOSE
Delete on close. |
StandardOpenOption |
DSYNC
Requires that every update to the file's content be written synchronously to the underlying storage device. |
StandardOpenOption |
READ
Open for read access. |
StandardOpenOption |
SPARSE
Sparse file. |
StandardOpenOption |
SYNC
Requires that every update to the file's content or metadata be written synchronously to the underlying storage device. |
StandardOpenOption |
TRUNCATE_EXISTING
If the file already exists and it is opened for |
StandardOpenOption |
WRITE
Open for write access. |
Public methods | |
|---|---|
static
StandardOpenOption
|
|