Stay organized with collections
Save and categorize content based on your preferences.
FileAttributeView
public
interface
FileAttributeView
implements
AttributeView
java.nio.file.attribute.FileAttributeView
|
Known indirect subclasses
AclFileAttributeView |
A file attribute view that supports reading or updating a file's Access
Control Lists (ACL) or file owner attributes.
|
BasicFileAttributeView |
A file attribute view that provides a view of a basic set of file
attributes common to many file systems.
|
DosFileAttributeView |
A file attribute view that provides a view of the legacy "DOS" file attributes.
|
FileOwnerAttributeView |
A file attribute view that supports reading or updating the owner of a file.
|
PosixFileAttributeView |
A 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.
|
UserDefinedFileAttributeView |
A file attribute view that provides a view of a file's user-defined
attributes, sometimes known as extended attributes.
|
|
An attribute view that is a read-only or updatable view of non-opaque
values associated with a file in a filesystem. This interface is extended or
implemented by specific file attribute views that define methods to read
and/or update the attributes of a file.
Summary
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# FileAttributeView\n\nAdded in [API level 26](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Inherited Methods](#inhmethods) \n\nFileAttributeView\n=================\n\n\n`\npublic\n\n\ninterface\nFileAttributeView\n`\n\n\n`\n\n\nimplements\n\n`[AttributeView](/reference/java/nio/file/attribute/AttributeView)`\n\n\n`\n\n|-------------------------------------------|\n| java.nio.file.attribute.FileAttributeView |\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [AclFileAttributeView](/reference/java/nio/file/attribute/AclFileAttributeView), [BasicFileAttributeView](/reference/java/nio/file/attribute/BasicFileAttributeView), [DosFileAttributeView](/reference/java/nio/file/attribute/DosFileAttributeView), [FileOwnerAttributeView](/reference/java/nio/file/attribute/FileOwnerAttributeView), [PosixFileAttributeView](/reference/java/nio/file/attribute/PosixFileAttributeView), [UserDefinedFileAttributeView](/reference/java/nio/file/attribute/UserDefinedFileAttributeView) |-------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [AclFileAttributeView](/reference/java/nio/file/attribute/AclFileAttributeView) | A file attribute view that supports reading or updating a file's Access Control Lists (ACL) or file owner attributes. | | [BasicFileAttributeView](/reference/java/nio/file/attribute/BasicFileAttributeView) | A file attribute view that provides a view of a *basic set* of file attributes common to many file systems. | | [DosFileAttributeView](/reference/java/nio/file/attribute/DosFileAttributeView) | A file attribute view that provides a view of the legacy \"DOS\" file attributes. | | [FileOwnerAttributeView](/reference/java/nio/file/attribute/FileOwnerAttributeView) | A file attribute view that supports reading or updating the owner of a file. | | [PosixFileAttributeView](/reference/java/nio/file/attribute/PosixFileAttributeView) | A 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. | | [UserDefinedFileAttributeView](/reference/java/nio/file/attribute/UserDefinedFileAttributeView) | A file attribute view that provides a view of a file's user-defined attributes, sometimes known as *extended attributes*. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn attribute view that is a read-only or updatable view of non-opaque\nvalues associated with a file in a filesystem. This interface is extended or\nimplemented by specific file attribute views that define methods to read\nand/or update the attributes of a file. \n**See also:**\n\n- [Files.getFileAttributeView(Path, Class, java.nio.file.LinkOption[])](/reference/java/nio/file/Files#getFileAttributeView(java.nio.file.Path,%20java.lang.Class\u003cV\u003e,%20java.nio.file.LinkOption[]))\n\nSummary\n-------\n\n| ### Inherited methods |\n|-----------------------|---|\n| From interface ` `[java.nio.file.attribute.AttributeView](/reference/java/nio/file/attribute/AttributeView)` ` |---------------------------------------------------|-----------------------------------------------------------------------------------------------------------------| | ` abstract `[String](/reference/java/lang/String) | ` `[name](/reference/java/nio/file/attribute/AttributeView#name())`() ` Returns the name of the attribute view. | ||"]]