public enum StandardAttributesDescriptor extends Enum<StandardAttributesDescriptor> implements AttributesDescriptor
FileAttributeView
s defined by
the JDKEnum Constant and Description |
---|
ACL |
BASIC |
DOS |
FILE_OWNER |
POSIX |
USER |
Modifier and Type | Method and Description |
---|---|
Class<? extends BasicFileAttributes> |
getAttributeClass()
Get the file attributes class (if any) associated with this view
|
String |
getName()
Get the name of the attribute view
|
Class<? extends FileAttributeView> |
getViewClass()
Get the file attribute view class associated with this view
|
static StandardAttributesDescriptor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandardAttributesDescriptor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardAttributesDescriptor ACL
public static final StandardAttributesDescriptor BASIC
public static final StandardAttributesDescriptor DOS
public static final StandardAttributesDescriptor FILE_OWNER
public static final StandardAttributesDescriptor POSIX
public static final StandardAttributesDescriptor USER
public static StandardAttributesDescriptor[] values()
for (StandardAttributesDescriptor c : StandardAttributesDescriptor.values()) System.out.println(c);
public static StandardAttributesDescriptor valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Nonnull public String getName()
AttributesDescriptor
getName
in interface AttributesDescriptor
AttributeView.name()
@Nonnull public Class<? extends FileAttributeView> getViewClass()
AttributesDescriptor
getViewClass
in interface AttributesDescriptor
Files.getFileAttributeView(Path, Class, LinkOption...)
@Nullable public Class<? extends BasicFileAttributes> getAttributeClass()
AttributesDescriptor
getAttributeClass
in interface AttributesDescriptor
null
if this view does not
have an attributes classFiles.readAttributes(Path, Class, LinkOption...)