java.io.Serializable, java.lang.Comparable<PermissionUtils.FileType>public static enum PermissionUtils.FileType extends java.lang.Enum<PermissionUtils.FileType>
isFoo methods
in BasicFileAttributes.| Enum Constant | Description |
|---|---|
DIR |
A directory.
|
OTHER |
Something that is neither a regular file nor a directory nor a symbolic link.
|
REGULAR_FILE |
A regular file.
|
SYMLINK |
A symbolic link.
|
| Modifier and Type | Method | Description |
|---|---|---|
static PermissionUtils.FileType |
of(java.nio.file.Path p) |
Determines the file type of a
Path. |
static PermissionUtils.FileType |
of(Resource r) |
Determines the file type of a
Resource. |
static PermissionUtils.FileType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static PermissionUtils.FileType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PermissionUtils.FileType REGULAR_FILE
public static final PermissionUtils.FileType DIR
public static final PermissionUtils.FileType SYMLINK
public static final PermissionUtils.FileType OTHER
public static PermissionUtils.FileType[] values()
for (PermissionUtils.FileType c : PermissionUtils.FileType.values()) System.out.println(c);
public static PermissionUtils.FileType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static PermissionUtils.FileType of(java.nio.file.Path p) throws java.io.IOException
Path.p - Pathjava.io.IOException - if file attributes cannot be readpublic static PermissionUtils.FileType of(Resource r)
Resource.r - Resource