public enum CopyOption extends Enum<CopyOption>
Enum Constant and Description |
---|
COPY_ATTRIBUTES
Copy attributes to the new file.
|
RECURSIVE
Copy directories recursively.
|
REPLACE_EXISTING
Replace an existing file if it exists.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
contains(CopyOption[] options,
CopyOption option) |
static CopyOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CopyOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CopyOption COPY_ATTRIBUTES
public static final CopyOption REPLACE_EXISTING
public static final CopyOption RECURSIVE
public static CopyOption[] values()
for (CopyOption c : CopyOption.values()) System.out.println(c);
public static CopyOption valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static boolean contains(CopyOption[] options, CopyOption option)