public enum WriteOption extends Enum<WriteOption>
| Enum Constant and Description |
|---|
APPEND
Append data at the end of the file.
|
CREATE
Create a new file, failing if the file already exists.
|
OVERWRITE
Overwrite the file (without first truncating it).
|
UPDATE
Update an existing file, failing if the file doesn't exist.
|
| Modifier and Type | Method and Description |
|---|---|
static WriteOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WriteOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WriteOption CREATE
public static final WriteOption UPDATE
CREATE.public static final WriteOption OVERWRITE
public static final WriteOption APPEND
public static WriteOption[] values()
for (WriteOption c : WriteOption.values()) System.out.println(c);
public static WriteOption 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 © 2012–2015. All rights reserved.