public class CopyOptions extends Object
| Modifier and Type | Field and Description | 
|---|---|
static boolean | 
DEFAULT_ATOMIC_MOVE
Whether move should be performed as an atomic filesystem operation by default = false. 
 | 
static boolean | 
DEFAULT_COPY_ATTRIBUTES
Whether the file attributes should be copied by default = false. 
 | 
static boolean | 
DEFAULT_NOFOLLOW_LINKS
Whether symbolic links should not be followed during copy or move operations by default = false. 
 | 
static boolean | 
DEFAULT_REPLACE_EXISTING
Whether an existing file, empty directory, or link should be replaced by default = false. 
 | 
| Constructor and Description | 
|---|
CopyOptions()
Default constructor. 
 | 
CopyOptions(CopyOptions other)
Copy constructor. 
 | 
CopyOptions(JsonObject json)
Constructor to create options from JSON. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
isAtomicMove()  | 
boolean | 
isCopyAttributes()  | 
boolean | 
isNofollowLinks()  | 
boolean | 
isReplaceExisting()  | 
CopyOptions | 
setAtomicMove(boolean atomicMove)
Whether move should be performed as an atomic filesystem operation. 
 | 
CopyOptions | 
setCopyAttributes(boolean copyAttributes)
Whether the file attributes should be copied. 
 | 
CopyOptions | 
setNofollowLinks(boolean nofollowLinks)
Whether symbolic links should not be followed during copy or move operations. 
 | 
CopyOptions | 
setReplaceExisting(boolean replaceExisting)
Whether an existing file, empty directory, or link should be replaced. 
 | 
public static final boolean DEFAULT_REPLACE_EXISTING
public static final boolean DEFAULT_COPY_ATTRIBUTES
public static final boolean DEFAULT_ATOMIC_MOVE
public static final boolean DEFAULT_NOFOLLOW_LINKS
public CopyOptions()
public CopyOptions(CopyOptions other)
other - the options to copypublic CopyOptions(JsonObject json)
json - the JSONpublic boolean isReplaceExisting()
public CopyOptions setReplaceExisting(boolean replaceExisting)
false.replaceExisting - true to replace, false otherwisepublic boolean isCopyAttributes()
public CopyOptions setCopyAttributes(boolean copyAttributes)
false.copyAttributes - true to copy attributes, false otherwisepublic boolean isAtomicMove()
public CopyOptions setAtomicMove(boolean atomicMove)
false.atomicMove - true to perform as an atomic filesystem operation, false otherwisepublic boolean isNofollowLinks()
public CopyOptions setNofollowLinks(boolean nofollowLinks)
false.nofollowLinks - true to not follow links, false otherwise. Defaults to false.Copyright © 2020 Eclipse. All rights reserved.