public enum StandardAttributesDescriptor extends Enum<StandardAttributesDescriptor> implements AttributesDescriptor
FileAttributeViews defined by
the JDK| Enum 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()
AttributesDescriptorgetName in interface AttributesDescriptorAttributeView.name()@Nonnull public Class<? extends FileAttributeView> getViewClass()
AttributesDescriptorgetViewClass in interface AttributesDescriptorFiles.getFileAttributeView(Path, Class, LinkOption...)@Nullable public Class<? extends BasicFileAttributes> getAttributeClass()
AttributesDescriptorgetAttributeClass in interface AttributesDescriptornull if this view does not
have an attributes classFiles.readAttributes(Path, Class, LinkOption...)