Package org.apache.tools.ant.util
Enum Class PermissionUtils.FileType
- All Implemented Interfaces:
Serializable
,Comparable<PermissionUtils.FileType>
,Constable
- Enclosing class:
PermissionUtils
The supported types of files, maps to the
isFoo
methods
in BasicFileAttributes
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA directory.Something that is neither a regular file nor a directory nor a symbolic link.A regular file.A symbolic link. -
Method Summary
Modifier and TypeMethodDescriptionstatic PermissionUtils.FileType
Determines the file type of aPath
.static PermissionUtils.FileType
Determines the file type of aResource
.static PermissionUtils.FileType
Returns the enum constant of this class with the specified name.static PermissionUtils.FileType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REGULAR_FILE
A regular file. -
DIR
A directory. -
SYMLINK
A symbolic link. -
OTHER
Something that is neither a regular file nor a directory nor a symbolic link.
-
-
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
-
of
Determines the file type of aPath
.- Parameters:
p
- Path- Returns:
- FileType
- Throws:
IOException
- if file attributes cannot be read
-
of
Determines the file type of aResource
.- Parameters:
r
- Resource- Returns:
- FileType
-