public class CopyFlags extends Object
CopyOption
s.
This class may be extended by file system implementations that add custom
options. Use setStandardOption(CopyFlags, CopyOption)
to set
standard options in custom subclasses.
StandardCopyOption
,
LinkOption
Modifier and Type | Field and Description |
---|---|
boolean |
atomicMove |
boolean |
copyAttributes |
boolean |
followLinks |
boolean |
replaceExisting |
Constructor and Description |
---|
CopyFlags() |
Modifier and Type | Method and Description |
---|---|
static CopyFlags |
fromOptions(CopyOption... options) |
static CopyFlags |
fromOptions(Iterable<? extends CopyOption> options) |
protected static boolean |
setStandardOption(CopyFlags flags,
CopyOption option)
Sets a standard option in
flags . |
public boolean replaceExisting
public boolean copyAttributes
public boolean atomicMove
public boolean followLinks
public static CopyFlags fromOptions(CopyOption... options)
public static CopyFlags fromOptions(Iterable<? extends CopyOption> options)
protected static boolean setStandardOption(CopyFlags flags, CopyOption option)
flags
.flags
- the flags object in which to set the optionoption
- the standard option to settrue
if the option was recognized and set or
false
if the option was non-standard.