io.vertx.core.file.AsyncFile should be opened.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private boolean | |
| public static final boolean | DEFAULT_APPEND
Whether the file should be opened in append mode by default = false. |
| public static final boolean | |
| public static final boolean | |
| public static final boolean | |
| public static final boolean | |
| public static final String | |
| public static final boolean | |
| public static final boolean | |
| public static final boolean | |
| public static final boolean | |
| public static final boolean | |
| private boolean | |
| private boolean | |
| private String | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | OpenOptions(JsonObject
the JSON json)
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
Constructor to create options from JSON |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public boolean | |
| public boolean | Returns: true if the file should be created if it does not already existShould the file be created if it does not already exist? |
| public boolean | Returns: true if the file should be created if and the open fail if it already exists.Should the file be created if and the open fail if it already exists? |
| public boolean | Returns: true if the file should be deleted when it's closed or the JVM shutdownShould the file be deleted when it's closed, or the JVM is shutdown. |
| public boolean | Returns: true if syncIf true then every write to the file's content will be written synchronously to the underlying hardware. |
| public boolean | |
| public boolean | Returns: true if a hint should be provided that the file to created is sparseSet whether a hint should be provided that the file to created is sparse |
| public boolean | Returns: true if syncIf true then every write to the file's content and metadata will be written synchronously to the underlying hardware. |
| public boolean | Returns: true if the file exists and is opened for writing and the file be truncated to zero length on openIf the file exists and is opened for writing should the file be truncated to zero length on open? |
| public boolean | |
| public OpenOptions | Returns: a reference to this, so the API can be used fluentlytrue to open file in append mode, false otherwise append)Whether the file should be opened in append mode. |
| public OpenOptions | Returns: a reference to this, so the API can be used fluentlytrue if the file should be created if it does not already exist create)Set whether the file should be created if it does not already exist. |
| public OpenOptions | Returns: a reference to this, so the API can be used fluentlytrue if the file should be created or fail if it exists already createNew)Set whether the file should be created and fail if it does exist already. |
| public OpenOptions | Returns: a reference to this, so the API can be used fluentlywhether the file should be deleted when it's closed, or the JVM is shutdown. deleteOnClose)Set whether the file should be deleted when it's closed, or the JVM is shutdown. |
| public OpenOptions | Returns: a reference to this, so the API can be used fluentlytrue if sync dsync)Set whether every write to the file's content will be written synchronously to the underlying hardware. |
| public OpenOptions | |
| public OpenOptions | Returns: a reference to this, so the API can be used fluentlytrue if the file is to be opened for reading read)Set whether the file is to be opened for reading |
| public OpenOptions | Returns: a reference to this, so the API can be used fluentlytrue if a hint should be provided that the file to created is sparse sparse)Set whether a hint should be provided that the file to created is sparse |
| public OpenOptions | Returns: a reference to this, so the API can be used fluentlytrue if sync sync)Set whether every write to the file's content and meta-data will be written synchronously to the underlying hardware. |
| public OpenOptions | Returns: a reference to this, so the API can be used fluentlytrue if the file should be truncated to zero length on opening if it exists and is opened for write truncateExisting)Set whether the file should be truncated to zero length on opening if it exists and is opened for write |
| public OpenOptions | Returns: a reference to this, so the API can be used fluentlytrue if the file is to be opened for writing write)Set whether the file is to be opened for writing |
| append | back to summary |
|---|---|
| private boolean append | |
| create | back to summary |
|---|---|
| private boolean create | |
| createNew | back to summary |
|---|---|
| private boolean createNew | |
| DEFAULT_APPEND | back to summary |
|---|---|
| public static final boolean DEFAULT_APPEND Whether the file should be opened in append mode by default = false. | |
| DEFAULT_CREATE | back to summary |
|---|---|
| public static final boolean DEFAULT_CREATE | |
| DEFAULT_CREATENEW | back to summary |
|---|---|
| public static final boolean DEFAULT_CREATENEW | |
| DEFAULT_DELETEONCLOSE | back to summary |
|---|---|
| public static final boolean DEFAULT_DELETEONCLOSE | |
| DEFAULT_DSYNC | back to summary |
|---|---|
| public static final boolean DEFAULT_DSYNC | |
| DEFAULT_PERMS | back to summary |
|---|---|
| public static final String DEFAULT_PERMS | |
| DEFAULT_READ | back to summary |
|---|---|
| public static final boolean DEFAULT_READ | |
| DEFAULT_SPARSE | back to summary |
|---|---|
| public static final boolean DEFAULT_SPARSE | |
| DEFAULT_SYNC | back to summary |
|---|---|
| public static final boolean DEFAULT_SYNC | |
| DEFAULT_TRUNCATEEXISTING | back to summary |
|---|---|
| public static final boolean DEFAULT_TRUNCATEEXISTING | |
| DEFAULT_WRITE | back to summary |
|---|---|
| public static final boolean DEFAULT_WRITE | |
| deleteOnClose | back to summary |
|---|---|
| private boolean deleteOnClose | |
| dsync | back to summary |
|---|---|
| private boolean dsync | |
| perms | back to summary |
|---|---|
| private String perms | |
| read | back to summary |
|---|---|
| private boolean read | |
| sparse | back to summary |
|---|---|
| private boolean sparse | |
| sync | back to summary |
|---|---|
| private boolean sync | |
| truncateExisting | back to summary |
|---|---|
| private boolean truncateExisting | |
| write | back to summary |
|---|---|
| private boolean write | |
| OpenOptions | back to summary |
|---|---|
| public OpenOptions() Default constructor | |
| OpenOptions | back to summary |
|---|---|
| public OpenOptions(OpenOptions other) Copy constructor
| |
| OpenOptions | back to summary |
|---|---|
| public OpenOptions(JsonObject json)
References Deprecated
See corresponding docs for further information. Constructor to create options from JSON
| |
| getPerms | back to summary |
|---|---|
| public String getPerms() Get the permissions string to be used if creating a file
| |
| isAppend | back to summary |
|---|---|
public boolean isAppend()
| |
| isCreate | back to summary |
|---|---|
| public boolean isCreate() Should the file be created if it does not already exist?
| |
| isCreateNew | back to summary |
|---|---|
| public boolean isCreateNew() Should the file be created if and the open fail if it already exists?
| |
| isDeleteOnClose | back to summary |
|---|---|
| public boolean isDeleteOnClose() Should the file be deleted when it's closed, or the JVM is shutdown.
| |
| isDsync | back to summary |
|---|---|
| public boolean isDsync() If true then every write to the file's content will be written synchronously to the underlying hardware.
| |
| isRead | back to summary |
|---|---|
| public boolean isRead() Is the file to opened for reading?
| |
| isSparse | back to summary |
|---|---|
| public boolean isSparse() Set whether a hint should be provided that the file to created is sparse
| |
| isSync | back to summary |
|---|---|
| public boolean isSync() If true then every write to the file's content and metadata will be written synchronously to the underlying hardware.
| |
| isTruncateExisting | back to summary |
|---|---|
| public boolean isTruncateExisting() If the file exists and is opened for writing should the file be truncated to zero length on open?
| |
| isWrite | back to summary |
|---|---|
| public boolean isWrite() Is the file to opened for writing?
| |
| setAppend | back to summary |
|---|---|
| public OpenOptions setAppend(boolean append) Whether the file should be opened in append mode. Defaults to
| |
| setCreate | back to summary |
|---|---|
| public OpenOptions setCreate(boolean create) Set whether the file should be created if it does not already exist.
| |
| setCreateNew | back to summary |
|---|---|
| public OpenOptions setCreateNew(boolean createNew) Set whether the file should be created and fail if it does exist already.
| |
| setDeleteOnClose | back to summary |
|---|---|
| public OpenOptions setDeleteOnClose(boolean deleteOnClose) Set whether the file should be deleted when it's closed, or the JVM is shutdown.
| |
| setDsync | back to summary |
|---|---|
| public OpenOptions setDsync(boolean dsync) Set whether every write to the file's content will be written synchronously to the underlying hardware.
| |
| setPerms | back to summary |
|---|---|
| public OpenOptions setPerms(String perms) Set the permissions string
| |
| setRead | back to summary |
|---|---|
| public OpenOptions setRead(boolean read) Set whether the file is to be opened for reading
| |
| setSparse | back to summary |
|---|---|
| public OpenOptions setSparse(boolean sparse) Set whether a hint should be provided that the file to created is sparse
| |
| setSync | back to summary |
|---|---|
| public OpenOptions setSync(boolean sync) Set whether every write to the file's content and meta-data will be written synchronously to the underlying hardware.
| |
| setTruncateExisting | back to summary |
|---|---|
| public OpenOptions setTruncateExisting(boolean truncateExisting) Set whether the file should be truncated to zero length on opening if it exists and is opened for write
| |
| setWrite | back to summary |
|---|---|
| public OpenOptions setWrite(boolean write) Set whether the file is to be opened for writing
| |