@PublicAPI(stability=UNCOMMITTED, mayInstantiate=false, mayExtend=false, mayInvoke=true) public enum ExistingFileBehavior extends Enum<ExistingFileBehavior>
Enum Constant and Description |
---|
APPEND
The file behavior that indicates that the data written should be
appended to any existing file.
|
FAIL
The file behavior that indicates that the write should fail if
the specified file already exists.
|
OVERWRITE
The file behavior that indicates that the data written should overwrite any existing file.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Retrieves the name for this existing file behavior.
|
String |
toString()
Retrieves a string representation of this existing file behavior.
|
static ExistingFileBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExistingFileBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExistingFileBehavior APPEND
public static final ExistingFileBehavior OVERWRITE
public static final ExistingFileBehavior FAIL
public static ExistingFileBehavior[] values()
for (ExistingFileBehavior c : ExistingFileBehavior.values()) System.out.println(c);
public static ExistingFileBehavior 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 String getName()
public String toString()
toString
in class Enum<ExistingFileBehavior>
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.