public static enum FileSystem.WriteMode extends java.lang.Enum<FileSystem.WriteMode>
Enum Constant and Description |
---|
NO_OVERWRITE
Creates the target file only if no file exists at that path already.
|
OVERWRITE
Creates a new target file regardless of any existing files or directories.
|
Modifier and Type | Method and Description |
---|---|
static FileSystem.WriteMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileSystem.WriteMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileSystem.WriteMode NO_OVERWRITE
public static final FileSystem.WriteMode OVERWRITE
public static FileSystem.WriteMode[] values()
for (FileSystem.WriteMode c : FileSystem.WriteMode.values()) System.out.println(c);
public static FileSystem.WriteMode 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 null