java.nio.file.StandardOpenOption
READ Open the file for reading
WRITE Open the file for writing
CREATE If the file does not exist, create
it CREATE_NEW If the file does not exist, create it; if it exists, throw an exception.
APPEND appends
DELETE_ON_CLOSE to the end of the file deletes the file when the stream is closed
TRUNCATE_EXISTING sets the file to 0 bytes
SPARSE creates a new file when the file is not enough
SYNC synchronizes the contents and metadata of the file with the underlying storage device
DSYNC synchronizes the contents of the file with underlying storage device
java.nio.file.StandardOpenOption
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326375898&siteId=291194637
Recommended
Ranking