|Can read or update non-opaque values associated with objects in a file system
|Can read or update file attributes
|Can read or update a basic set of file attributes
|Can read or update POSIX defined file attributes
|Can read or update FAT file attributes
|Can read or update the owner of a file
|Can read or update Access Control Lists
|Can read or update user-defined file attributes
|Can read or update file system attributes
An attribute view provides a read-only or updatable view of the non-opaque
values, or metadata, associated with objects in a file system.
FileAttributeView interface is
extended by several other interfaces that provide views to specific sets of file
FileAttributeViews are selected by invoking the
Files.getFileAttributeView(java.nio.file.Path, java.lang.Class<V>, java.nio.file.LinkOption...) method with a
type-token to identify the required view. Views can also be identified
by name. The
provides access to file store attributes. A
a given type is obtained by invoking the
class defines methods to read and update a basic set of file
attributes that are common to many file systems.
BasicFileAttributeView by defining methods
to access the file attributes commonly used by file systems and operating systems
that implement the Portable Operating System Interface (POSIX) family of
BasicFileAttributeView by defining methods to
access the legacy "DOS" file attributes supported on file systems such as File
Allocation Tabl (FAT), commonly used in consumer devices.
class defines methods to read and write the Access Control List (ACL)
file attribute. The ACL model used by this file attribute view is based
on the model defined by
RFC 3530: Network File System (NFS) version 4 Protocol.
In addition to attribute views, this package also defines classes and interfaces that are used when accessing attributes:
GroupPrincipalinterfaces represent an identity or group identity.
UserPrincipalLookupServiceinterface defines methods to lookup user or group principals.
FileAttributeinterface represents the value of an attribute for cases where the attribute value is required to be set atomically when creating an object in the file system.
Unless otherwise noted, passing a
null argument to a constructor
or method in any class or interface in this package will cause a
NullPointerException to be thrown.
Interface Summary Interface Description AclFileAttributeViewA file attribute view that supports reading or updating a file's Access Control Lists (ACL) or file owner attributes. AttributeViewAn object that provides a read-only or updatable view of non-opaque values associated with an object in a filesystem. BasicFileAttributesBasic attributes associated with a file in a file system. BasicFileAttributeViewA file attribute view that provides a view of a basic set of file attributes common to many file systems. DosFileAttributesFile attributes associated with a file in a file system that supports legacy "DOS" attributes. DosFileAttributeViewA file attribute view that provides a view of the legacy "DOS" file attributes. FileAttribute<T> FileAttributeViewAn attribute view that is a read-only or updatable view of non-opaque values associated with a file in a filesystem. FileOwnerAttributeViewA file attribute view that supports reading or updating the owner of a file. FileStoreAttributeViewAn attribute view that is a read-only or updatable view of the attributes of a
UserPrincipalrepresenting a group identity, used to determine access rights to objects in a file system.
PosixFileAttributesFile attributes associated with files on file systems used by operating systems that implement the Portable Operating System Interface (POSIX) family of standards. PosixFileAttributeViewA file attribute view that provides a view of the file attributes commonly associated with files on file systems used by operating systems that implement the Portable Operating System Interface (POSIX) family of standards. UserDefinedFileAttributeViewA file attribute view that provides a view of a file's user-defined attributes, sometimes known as extended attributes. UserPrincipalA
Principalrepresenting an identity used to determine access rights to objects in a file system.
Class Summary Class Description AclEntryAn entry in an access control list (ACL). AclEntry.BuilderA builder of
FileTimeRepresents the value of a file's time stamp attribute. PosixFilePermissionsThis class consists exclusively of static methods that operate on sets of
UserPrincipalLookupServiceAn object to lookup user and group principals by name.
Enum Summary Enum Description AclEntryFlagDefines the flags for used by the flags component of an ACL
AclEntryPermissionDefines the permissions for use with the permissions component of an ACL
AclEntryTypeA typesafe enumeration of the access control entry types. PosixFilePermissionDefines the bits for use with the
Exception Summary Exception Description UserPrincipalNotFoundExceptionChecked exception thrown when a lookup of
UserPrincipalfails because the principal does not exist.