Stay organized with collections
Save and categorize content based on your preferences.
AttributeView
public
interface
AttributeView
java.nio.file.attribute.AttributeView
|
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.
|
FileAttributeView |
An attribute view that is a read-only or updatable view of non-opaque
values associated with a file in a filesystem.
|
FileOwnerAttributeView |
A file attribute view that supports reading or updating the owner of a file.
|
FileStoreAttributeView |
An attribute view that is a read-only or updatable view of the attributes of
a FileStore .
|
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 object that provides a read-only or updatable view of non-opaque
values associated with an object in a filesystem. This interface is extended
or implemented by specific attribute views that define the attributes
supported by the view. A specific attribute view will typically define
type-safe methods to read or update the attributes that it supports.
Summary
Public methods |
abstract
String
|
name()
Returns the name of the attribute view.
|
Public methods
name
public abstract String name ()
Returns the name of the attribute view.
Returns |
String |
the name of the attribute view |
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,["# AttributeView\n\nAdded in [API level 26](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Methods](#pubmethods) \n\nAttributeView\n=============\n\n\n`\npublic\n\n\ninterface\nAttributeView\n`\n\n\n`\n\n\n`\n\n|---------------------------------------|\n| java.nio.file.attribute.AttributeView |\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), [FileAttributeView](/reference/java/nio/file/attribute/FileAttributeView), [FileOwnerAttributeView](/reference/java/nio/file/attribute/FileOwnerAttributeView), [FileStoreAttributeView](/reference/java/nio/file/attribute/FileStoreAttributeView), [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. | | [FileAttributeView](/reference/java/nio/file/attribute/FileAttributeView) | An attribute view that is a read-only or updatable view of non-opaque values associated with a file in a filesystem. | | [FileOwnerAttributeView](/reference/java/nio/file/attribute/FileOwnerAttributeView) | A file attribute view that supports reading or updating the owner of a file. | | [FileStoreAttributeView](/reference/java/nio/file/attribute/FileStoreAttributeView) | An attribute view that is a read-only or updatable view of the attributes of a [FileStore](/reference/java/nio/file/FileStore). | | [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 object that provides a read-only or updatable *view* of non-opaque\nvalues associated with an object in a filesystem. This interface is extended\nor implemented by specific attribute views that define the attributes\nsupported by the view. A specific attribute view will typically define\ntype-safe methods to read or update the attributes that it supports.\n\nSummary\n-------\n\n| ### Public methods ||\n|---------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|\n| ` abstract `[String](/reference/java/lang/String) | ` `[name](/reference/java/nio/file/attribute/AttributeView#name())`() ` Returns the name of the attribute view. |\n\nPublic methods\n--------------\n\n### name\n\nAdded in [API level 26](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract String name ()\n```\n\nReturns the name of the attribute view.\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------------------------------------|---------------------------------------|\n| [String](/reference/java/lang/String) | the name of the attribute view \u003cbr /\u003e |"]]