Modifier and Type | Field and Description |
---|---|
public static final StandardOpenOption | |
public static final StandardOpenOption | CREATE
Create a new file if it does not exist. |
public static final StandardOpenOption | CREATE_NEW
Create a new file, failing if the file already exists. |
public static final StandardOpenOption | DELETE_ON_CLOSE
Delete on close. |
public static final StandardOpenOption | DSYNC
Requires that every update to the file's content be written synchronously to the underlying storage device. |
public static final StandardOpenOption | READ
Open for read access. |
public static final StandardOpenOption | SPARSE
Sparse file. |
public static final StandardOpenOption | SYNC
Requires that every update to the file's content or metadata be written synchronously to the underlying storage device. |
public static final StandardOpenOption | TRUNCATE_EXISTING
If the file already exists and it is opened for |
public static final StandardOpenOption | WRITE
Open for write access. |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public static StandardOpenOption | |
public static StandardOpenOption[] |
APPEND | back to summary |
---|---|
public static final StandardOpenOption APPEND If the file is opened for If the file is opened for write access by other programs, then it is file system specific if writing to the end of the file is atomic. |
CREATE | back to summary |
---|---|
public static final StandardOpenOption CREATE Create a new file if it does not exist.
This option is ignored if the |
CREATE_NEW | back to summary |
---|---|
public static final StandardOpenOption CREATE_NEW Create a new file, failing if the file already exists. The check for the existence of the file and the creation of the file if it does not exist is atomic with respect to other file system operations. |
DELETE_ON_CLOSE | back to summary |
---|---|
public static final StandardOpenOption DELETE_ON_CLOSE Delete on close. When this option is present then the implementation
makes a best effort attempt to delete the file when closed
by the appropriate For security reasons, this option may imply the |
DSYNC | back to summary |
---|---|
public static final StandardOpenOption DSYNC Requires that every update to the file's content be written synchronously to the underlying storage device.
|
READ | back to summary |
---|---|
public static final StandardOpenOption READ Open for read access. |
SPARSE | back to summary |
---|---|
public static final StandardOpenOption SPARSE Sparse file. When used with the |
SYNC | back to summary |
---|---|
public static final StandardOpenOption SYNC Requires that every update to the file's content or metadata be written synchronously to the underlying storage device.
|
TRUNCATE_EXISTING | back to summary |
---|---|
public static final StandardOpenOption TRUNCATE_EXISTING If the file already exists and it is opened for |
WRITE | back to summary |
---|---|
public static final StandardOpenOption WRITE Open for write access. |
StandardOpenOption | back to summary |
---|---|
private StandardOpenOption() |
valueOf | back to summary |
---|---|
public static StandardOpenOption valueOf(String name) |
values | back to summary |
---|---|
public static StandardOpenOption[] values() |