Package net.sourceforge.jnlp.util
Enum FileUtils.OpenFileResult
- All Implemented Interfaces:
Serializable
,Comparable<FileUtils.OpenFileResult>
,java.lang.constant.Constable
- Enclosing class:
- FileUtils
Indicates whether a file was successfully opened. If not, provides specific reasons
along with a general failure case
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe file could not be opened because it did not exist and could not be createdThe file can be opened but in read-onlyThe file could not be opened, for non-specified reasonsThe specified path pointed to a non-file filesystem object, ie a directoryThe file was successfully opened -
Method Summary
Modifier and TypeMethodDescriptionstatic FileUtils.OpenFileResult
Returns the enum constant of this type with the specified name.static FileUtils.OpenFileResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
The file was successfully opened -
FAILURE
The file could not be opened, for non-specified reasons -
CANT_CREATE
The file could not be opened because it did not exist and could not be created -
CANT_WRITE
The file can be opened but in read-only -
NOT_FILE
The specified path pointed to a non-file filesystem object, ie a directory
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-