Enum Class PermissionUtils.FileType

java.lang.Object
java.lang.Enum<PermissionUtils.FileType>
org.apache.tools.ant.util.PermissionUtils.FileType
All Implemented Interfaces:
Serializable, Comparable<PermissionUtils.FileType>, Constable
Enclosing class:
PermissionUtils

public static enum PermissionUtils.FileType extends Enum<PermissionUtils.FileType>
The supported types of files, maps to the isFoo methods in BasicFileAttributes.
  • Enum Constant Details

  • Method Details

    • values

      public static PermissionUtils.FileType[] 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 PermissionUtils.FileType 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
    • of

      public static PermissionUtils.FileType of(Path p) throws IOException
      Determines the file type of a Path.
      Parameters:
      p - Path
      Returns:
      FileType
      Throws:
      IOException - if file attributes cannot be read
    • of

      public static PermissionUtils.FileType of(Resource r)
      Determines the file type of a Resource.
      Parameters:
      r - Resource
      Returns:
      FileType