# FileAttribute

public interface **FileAttribute** 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 `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#createFile(java.nio.file.Path,%20java.nio.file.attribute.FileAttribute<?>...)` or `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#createDirectory(java.nio.file.Path,%20java.nio.file.attribute.FileAttribute<?>...)` methods.

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/PosixFilePermissions.html#asFileAttribute(java.util.Set<java.nio.file.attribute.PosixFilePermission>)`

### Public Method Summary

|---|---|
| abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [name](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/FileAttribute.html#name())() Returns the attribute name. |
| abstract T | [value](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/FileAttribute.html#value())() Returns the attribute value. |

## Public Methods

#### public abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**name**
()

Returns the attribute name.

##### Returns

- The attribute name

#### public abstract T
**value**
()

Returns the attribute value.

##### Returns

- The attribute value