Enum Class FileUtils.OpenFileResult

java.lang.Object
java.lang.Enum<FileUtils.OpenFileResult>
net.sourceforge.jnlp.util.FileUtils.OpenFileResult
All Implemented Interfaces:
Serializable, Comparable<FileUtils.OpenFileResult>, Constable
Enclosing class:
FileUtils

public static enum FileUtils.OpenFileResult extends Enum<FileUtils.OpenFileResult>
Indicates whether a file was successfully opened. If not, provides specific reasons along with a general failure case
  • Enum Constant Details

    • SUCCESS

      public static final FileUtils.OpenFileResult SUCCESS
      The file was successfully opened
    • FAILURE

      public static final FileUtils.OpenFileResult FAILURE
      The file could not be opened, for non-specified reasons
    • CANT_CREATE

      public static final FileUtils.OpenFileResult CANT_CREATE
      The file could not be opened because it did not exist and could not be created
    • CANT_WRITE

      public static final FileUtils.OpenFileResult CANT_WRITE
      The file can be opened but in read-only
    • NOT_FILE

      public static final FileUtils.OpenFileResult NOT_FILE
      The specified path pointed to a non-file filesystem object, ie a directory
  • Method Details

    • values

      public static FileUtils.OpenFileResult[] 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

      public static FileUtils.OpenFileResult valueOf(String name)
      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 name
      NullPointerException - if the argument is null