Package io.vertx.core.file
Class CopyOptions
- java.lang.Object
- 
- io.vertx.core.file.CopyOptions
 
- 
 public class CopyOptions extends Object Describes the copy (and move) options.- Author:
- Thomas Segismont
 
- 
- 
Field SummaryFields Modifier and Type Field Description static booleanDEFAULT_ATOMIC_MOVEWhether move should be performed as an atomic filesystem operation by default = false.static booleanDEFAULT_COPY_ATTRIBUTESWhether the file attributes should be copied by default = false.static booleanDEFAULT_NOFOLLOW_LINKSWhether symbolic links should not be followed during copy or move operations by default = false.static booleanDEFAULT_REPLACE_EXISTINGWhether an existing file, empty directory, or link should be replaced by default = false.
 - 
Constructor SummaryConstructors Constructor Description CopyOptions()Default constructor.CopyOptions(CopyOptions other)Copy constructor.CopyOptions(JsonObject json)Constructor to create options from JSON.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAtomicMove()booleanisCopyAttributes()booleanisNofollowLinks()booleanisReplaceExisting()CopyOptionssetAtomicMove(boolean atomicMove)Whether move should be performed as an atomic filesystem operation.CopyOptionssetCopyAttributes(boolean copyAttributes)Whether the file attributes should be copied.CopyOptionssetNofollowLinks(boolean nofollowLinks)Whether symbolic links should not be followed during copy or move operations.CopyOptionssetReplaceExisting(boolean replaceExisting)Whether an existing file, empty directory, or link should be replaced.
 
- 
- 
- 
Field Detail- 
DEFAULT_REPLACE_EXISTINGpublic static final boolean DEFAULT_REPLACE_EXISTING Whether an existing file, empty directory, or link should be replaced by default = false.- See Also:
- Constant Field Values
 
 - 
DEFAULT_COPY_ATTRIBUTESpublic static final boolean DEFAULT_COPY_ATTRIBUTES Whether the file attributes should be copied by default = false.- See Also:
- Constant Field Values
 
 - 
DEFAULT_ATOMIC_MOVEpublic static final boolean DEFAULT_ATOMIC_MOVE Whether move should be performed as an atomic filesystem operation by default = false.- See Also:
- Constant Field Values
 
 - 
DEFAULT_NOFOLLOW_LINKSpublic static final boolean DEFAULT_NOFOLLOW_LINKS Whether symbolic links should not be followed during copy or move operations by default = false.- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
CopyOptionspublic CopyOptions() Default constructor.
 - 
CopyOptionspublic CopyOptions(CopyOptions other) Copy constructor.- Parameters:
- other- the options to copy
 
 - 
CopyOptionspublic CopyOptions(JsonObject json) Constructor to create options from JSON.- Parameters:
- json- the JSON
 
 
- 
 - 
Method Detail- 
isReplaceExistingpublic boolean isReplaceExisting() - Returns:
- true if an existing file, empty directory, or link should be replaced, false otherwise
 
 - 
setReplaceExistingpublic CopyOptions setReplaceExisting(boolean replaceExisting) Whether an existing file, empty directory, or link should be replaced. Defaults tofalse.- Parameters:
- replaceExisting- true to replace, false otherwise
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
isCopyAttributespublic boolean isCopyAttributes() - Returns:
- true if the file attributes should be copied, false otherwise
 
 - 
setCopyAttributespublic CopyOptions setCopyAttributes(boolean copyAttributes) Whether the file attributes should be copied. Defaults tofalse.- Parameters:
- copyAttributes- true to copy attributes, false otherwise
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
isAtomicMovepublic boolean isAtomicMove() - Returns:
- true if move should be performed as an atomic filesystem operation, false otherwise
 
 - 
setAtomicMovepublic CopyOptions setAtomicMove(boolean atomicMove) Whether move should be performed as an atomic filesystem operation. Defaults tofalse.- Parameters:
- atomicMove- true to perform as an atomic filesystem operation, false otherwise
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
isNofollowLinkspublic boolean isNofollowLinks() - Returns:
- true if the operation should not follow links, false otherwise
 
 - 
setNofollowLinkspublic CopyOptions setNofollowLinks(boolean nofollowLinks) Whether symbolic links should not be followed during copy or move operations. Defaults tofalse.- Parameters:
- nofollowLinks- true to not follow links, false otherwise. Defaults to- false.
- Returns:
- a reference to this, so the API can be used fluently
 
 
- 
 
-