Enum Class FileUtils.OverwritePolicy
- All Implemented Interfaces:
Serializable, Comparable<FileUtils.OverwritePolicy>, Constable
- Enclosing class:
FileUtils
Policies for when the target file already exists
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRaise an errorOverwrite the target (unless the target is newer, then ignore)Overwrite the target (even if the target is newer)Overwrite the target, unless it was changed then raise an errorSkip the write -
Method Summary
Modifier and TypeMethodDescriptionstatic FileUtils.OverwritePolicyReturns the enum constant of this class with the specified name.static FileUtils.OverwritePolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ERROR
Raise an error -
OVERWRITE
Overwrite the target (unless the target is newer, then ignore) -
SKIP
Skip the write -
OVERWRITE_ALWAYS
Overwrite the target (even if the target is newer) -
OVERWRITE_ERROR
Overwrite the target, unless it was changed then raise an error
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-