| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| public static final boolean | DEFAULT_ATOMIC_MOVE
Whether move should be performed as an atomic filesystem operation by default = false. |
| public static final boolean | DEFAULT_COPY_ATTRIBUTES
Whether the file attributes should be copied by default = false. |
| public static final boolean | DEFAULT_NOFOLLOW_LINKS
Whether symbolic links should not be followed during copy or move operations by default = false. |
| public static final boolean | DEFAULT_REPLACE_EXISTING
Whether an existing file, empty directory, or link should be replaced by default = false. |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | CopyOptions(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 boolean | Returns: true if move should be performed as an atomic filesystem operation, false otherwise
|
| public boolean | |
| public boolean | |
| public boolean | Returns: true if an existing file, empty directory, or link should be replaced, false otherwise
|
| public CopyOptions | Returns: a reference to this, so the API can be used fluentlytrue to perform as an atomic filesystem operation, false otherwise atomicMove)Whether move should be performed as an atomic filesystem operation. |
| public CopyOptions | Returns: a reference to this, so the API can be used fluentlytrue to copy attributes, false otherwise copyAttributes)Whether the file attributes should be copied. |
| public CopyOptions | Returns: a reference to this, so the API can be used fluentlytrue to not follow links, false otherwise. Defaults to nofollowLinks)false.Whether symbolic links should not be followed during copy or move operations. |
| public CopyOptions | Returns: a reference to this, so the API can be used fluentlytrue to replace, false otherwise replaceExisting)Whether an existing file, empty directory, or link should be replaced. |
| atomicMove | back to summary |
|---|---|
| private boolean atomicMove | |
| copyAttributes | back to summary |
|---|---|
| private boolean copyAttributes | |
| DEFAULT_ATOMIC_MOVE | back to summary |
|---|---|
| public static final boolean DEFAULT_ATOMIC_MOVE Whether move should be performed as an atomic filesystem operation by default = false. | |
| DEFAULT_COPY_ATTRIBUTES | back to summary |
|---|---|
| public static final boolean DEFAULT_COPY_ATTRIBUTES Whether the file attributes should be copied by default = false. | |
| DEFAULT_NOFOLLOW_LINKS | back to summary |
|---|---|
| public static final boolean DEFAULT_NOFOLLOW_LINKS Whether symbolic links should not be followed during copy or move operations by default = false. | |
| DEFAULT_REPLACE_EXISTING | back to summary |
|---|---|
| public static final boolean DEFAULT_REPLACE_EXISTING Whether an existing file, empty directory, or link should be replaced by default = false. | |
| nofollowLinks | back to summary |
|---|---|
| private boolean nofollowLinks | |
| replaceExisting | back to summary |
|---|---|
| private boolean replaceExisting | |
| CopyOptions | back to summary |
|---|---|
| public CopyOptions() Default constructor. | |
| CopyOptions | back to summary |
|---|---|
| public CopyOptions(CopyOptions other) Copy constructor.
| |
| CopyOptions | back to summary |
|---|---|
| public CopyOptions(JsonObject json)
References Deprecated
See corresponding docs for further information. Constructor to create options from JSON.
| |
| isAtomicMove | back to summary |
|---|---|
public boolean isAtomicMove()
| |
| isCopyAttributes | back to summary |
|---|---|
public boolean isCopyAttributes()
| |
| isNofollowLinks | back to summary |
|---|---|
public boolean isNofollowLinks()
| |
| isReplaceExisting | back to summary |
|---|---|
public boolean isReplaceExisting()
| |
| setAtomicMove | back to summary |
|---|---|
| public CopyOptions setAtomicMove(boolean atomicMove) Whether move should be performed as an atomic filesystem operation. Defaults to
| |
| setCopyAttributes | back to summary |
|---|---|
| public CopyOptions setCopyAttributes(boolean copyAttributes) Whether the file attributes should be copied. Defaults to
| |
| setNofollowLinks | back to summary |
|---|---|
| public CopyOptions setNofollowLinks(boolean nofollowLinks) Whether symbolic links should not be followed during copy or move operations. Defaults to
| |
| setReplaceExisting | back to summary |
|---|---|
| public CopyOptions setReplaceExisting(boolean replaceExisting) Whether an existing file, empty directory, or link should be replaced. Defaults to
| |