public enum FileCopyFlag extends java.lang.Enum<FileCopyFlag>
Enum Constant and Description |
---|
FollowLinks
Follow symbolic links.
|
None
No flag set.
|
NoReplace
Do not replace the destination file if it exists.
|
Update
Only copy when the source file is newer than the destination file
or when the destination file is missing.
|
Modifier and Type | Method and Description |
---|---|
static FileCopyFlag |
fromValue(long v) |
static FileCopyFlag |
fromValue(java.lang.String v) |
int |
value() |
static FileCopyFlag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileCopyFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileCopyFlag None
public static final FileCopyFlag NoReplace
public static final FileCopyFlag FollowLinks
public static final FileCopyFlag Update
public static FileCopyFlag[] values()
for (FileCopyFlag c : FileCopyFlag.values()) System.out.println(c);
public static FileCopyFlag valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int value()
public static FileCopyFlag fromValue(long v)
public static FileCopyFlag fromValue(java.lang.String v)