Java java.nio.file StandardOpenOption fields, constructors, methods, implement or subclass

Example usage for Java java.nio.file StandardOpenOption fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.nio.file StandardOpenOption.

The text is from its open source code.

Field

StandardOpenOptionREAD
Open for read access.
StandardOpenOptionWRITE
Open for write access.
StandardOpenOptionAPPEND
If the file is opened for #WRITE access then bytes will be written to the end of the file rather than the beginning.
StandardOpenOptionTRUNCATE_EXISTING
If the file already exists and it is opened for #WRITE access, then its length is truncated to 0.
StandardOpenOptionCREATE
Create a new file if it does not exist.
StandardOpenOptionCREATE_NEW
Create a new file, failing if the file already exists.
StandardOpenOptionDELETE_ON_CLOSE
Delete on close.
StandardOpenOptionSPARSE
Sparse file.
StandardOpenOptionSYNC
Requires that every update to the file's content or metadata be written synchronously to the underlying storage device.
StandardOpenOptionDSYNC
Requires that every update to the file's content be written synchronously to the underlying storage device.