/* * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ /** * Interfaces and classes providing access to file and file system attributes. * *
* **
* Attribute views
Description
* {@link java.nio.file.attribute.AttributeView} *Can read or update non-opaque values associated with objects in a file system * {@link java.nio.file.attribute.FileAttributeView} *Can read or update file attributes * {@link java.nio.file.attribute.BasicFileAttributeView} *Can read or update a basic set of file attributes * {@link java.nio.file.attribute.PosixFileAttributeView} *Can read or update POSIX defined file attributes * {@link java.nio.file.attribute.DosFileAttributeView} *Can read or update FAT file attributes *  {@link java.nio.file.attribute.FileOwnerAttributeView} *Can read or update the owner of a file * {@link java.nio.file.attribute.AclFileAttributeView} *Can read or update Access Control Lists * {@link java.nio.file.attribute.UserDefinedFileAttributeView} *Can read or update user-defined file attributes * {@link java.nio.file.attribute.FileStoreAttributeView} *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. * The {@link java.nio.file.attribute.FileAttributeView} interface is * extended by several other interfaces that that views to specific sets of file * attributes. {@code FileAttributeViews} are selected by invoking the {@link * java.nio.file.Files#getFileAttributeView} method with a * type-token to identify the required view. Views can also be identified * by name. The {@link java.nio.file.attribute.FileStoreAttributeView} interface * provides access to file store attributes. A {@code FileStoreAttributeView} of * a given type is obtained by invoking the {@link * java.nio.file.FileStore#getFileStoreAttributeView} method. * *
The {@link java.nio.file.attribute.BasicFileAttributeView} * class defines methods to read and update a basic set of file * attributes that are common to many file systems. * *
The {@link java.nio.file.attribute.PosixFileAttributeView} * interface extends {@code 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 * standards. * *
The {@link java.nio.file.attribute.DosFileAttributeView} * class extends {@code 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. * *
The {@link java.nio.file.attribute.AclFileAttributeView} * 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: * *
Unless otherwise noted, passing a null argument to a constructor * or method in any class or interface in this package will cause a {@link * java.lang.NullPointerException NullPointerException} to be thrown. * * @since 1.7 */ package java.nio.file.attribute;