Package com.github.fge.filesystem.attributes.descriptor

Descriptors for file attributes

See: Description

Package com.github.fge.filesystem.attributes.descriptor Description

Descriptors for file attributes

Implementation note

As of today, file attributes are supported; however, filestore attributes are not.

What this package does

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.