AI-generated Key Takeaways
-
FileAttributeobjects store file attributes that can be set when creating files or directories usingcreateFileorcreateDirectorymethods. -
This interface provides two methods:
name()to retrieve the attribute name andvalue()to retrieve the attribute value. -
PosixFilePermissions.asFileAttributeis a relevant method for creatingFileAttributeinstances.
An object that encapsulates the value of a file attribute that can be set
atomically when creating a new file or directory by invoking the createFile or createDirectory methods.
Public Method Summary
| abstract String |
name()
Returns the attribute name.
|
| abstract T |
value()
Returns the attribute value.
|
Public Methods
public abstract T value ()
Returns the attribute value.
Returns
- The attribute value