See: Description
Interface | Description |
---|---|
AttributesDescriptor |
One file attribute descriptor
|
Enum | Description |
---|---|
StandardAttributesDescriptor |
File attribute descriptors for all
FileAttributeView s defined by
the JDK |
As of today, file attributes are supported; however, filestore attributes are not.
The java.nio.file API defines two types of file attribute classes: views
and attributes. A view is defined by its name and an associated interface
(for instance, the "posix"
view is associated with PosixFileAttributeView
); some views, but not all,
also have an associated attributes class (PosixFileAttributes
for "posix"
; "owner"
is an example of a view with no associated attributes class).
This package simply provides a wrapper to describe such relationships. All
views currently defined by the JDK are wrapped in enumeration StandardAttributesDescriptor
.
You can create your own if you so desire; beware, however, not to reuse one defined by the JDK! Those are:
All views (except for "user"
also define the set of attribute
names they support; however, this class does not have this information. This
is left to the attribute providers
to deal with.