Example usage for Java java.nio.file StandardOpenOption fields, constructors, methods, implement or subclass
The text is from its open source code.
StandardOpenOption | READ Open for read access. |
StandardOpenOption | WRITE Open for write access. |
StandardOpenOption | APPEND If the file is opened for #WRITE access then bytes will be written to the end of the file rather than the beginning. |
StandardOpenOption | TRUNCATE_EXISTING If the file already exists and it is opened for #WRITE access, then its length is truncated to 0. |
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 | 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 | DSYNC Requires that every update to the file's content be written synchronously to the underlying storage device. |