public static enum FileSystem.WriteMode extends 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(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(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 nullCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.