java.nio.file.attribute
25 classes of the module java.base.
Load them with:
using {
"java.nio.file.attribute"
}
AclEntry#
class final · extends Object · java.nio.file.attribute.AclEntry
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@newBuilder | @newBuilder(entry) | static Builder newBuilder(AclEntry entry) |
flags | flags() | Set flags() |
newBuilder | newBuilder() | static Builder newBuilder() |
permissions | permissions() | Set permissions() |
principal | principal() | UserPrincipal principal() |
type | type() | AclEntryType type() |
The methods and fields of Object are inherited.
AclEntryBuilder#
class final · extends Object · java.nio.file.attribute.AclEntry$Builder
Methods
| Method | Ring call | Java overloads |
|---|---|---|
build | build() | AclEntry build() |
setFlags | setFlags(flags) | Builder setFlags(AclEntryFlag[] flags)Builder setFlags(Set flags) |
setPermissions | setPermissions(perms) | Builder setPermissions(Set perms)Builder setPermissions(AclEntryPermission[] perms) |
setPrincipal | setPrincipal(who) | Builder setPrincipal(UserPrincipal who) |
setType | setType(type) | Builder setType(AclEntryType type) |
The methods and fields of Object are inherited.
AclEntryFlag#
enum · extends Enum · java.nio.file.attribute.AclEntryFlag
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
FILE_INHERIT | AclEntryFlag | constant · static | o.FILE_INHERIT |
DIRECTORY_INHERIT | AclEntryFlag | constant · static | o.DIRECTORY_INHERIT |
NO_PROPAGATE_INHERIT | AclEntryFlag | constant · static | o.NO_PROPAGATE_INHERIT |
INHERIT_ONLY | AclEntryFlag | constant · static | o.INHERIT_ONLY |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static AclEntryFlag valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static AclEntryFlag[] values() |
The methods and fields of Enum are inherited.
AclEntryPermission#
enum · extends Enum · java.nio.file.attribute.AclEntryPermission
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
READ_DATA | AclEntryPermission | constant · static | o.READ_DATA |
WRITE_DATA | AclEntryPermission | constant · static | o.WRITE_DATA |
APPEND_DATA | AclEntryPermission | constant · static | o.APPEND_DATA |
READ_NAMED_ATTRS | AclEntryPermission | constant · static | o.READ_NAMED_ATTRS |
WRITE_NAMED_ATTRS | AclEntryPermission | constant · static | o.WRITE_NAMED_ATTRS |
EXECUTE | AclEntryPermission | constant · static | o.EXECUTE |
DELETE_CHILD | AclEntryPermission | constant · static | o.DELETE_CHILD |
READ_ATTRIBUTES | AclEntryPermission | constant · static | o.READ_ATTRIBUTES |
WRITE_ATTRIBUTES | AclEntryPermission | constant · static | o.WRITE_ATTRIBUTES |
DELETE | AclEntryPermission | constant · static | o.DELETE |
READ_ACL | AclEntryPermission | constant · static | o.READ_ACL |
WRITE_ACL | AclEntryPermission | constant · static | o.WRITE_ACL |
WRITE_OWNER | AclEntryPermission | constant · static | o.WRITE_OWNER |
SYNCHRONIZE | AclEntryPermission | constant · static | o.SYNCHRONIZE |
LIST_DIRECTORY | AclEntryPermission | constant · static | o.LIST_DIRECTORY |
ADD_FILE | AclEntryPermission | constant · static | o.ADD_FILE |
ADD_SUBDIRECTORY | AclEntryPermission | constant · static | o.ADD_SUBDIRECTORY |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static AclEntryPermission valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static AclEntryPermission[] values() |
The methods and fields of Enum are inherited.
AclEntryType#
enum · extends Enum · java.nio.file.attribute.AclEntryType
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ALLOW | AclEntryType | constant · static | o.ALLOW |
DENY | AclEntryType | constant · static | o.DENY |
AUDIT | AclEntryType | constant · static | o.AUDIT |
ALARM | AclEntryType | constant · static | o.ALARM |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static AclEntryType valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static AclEntryType[] values() |
The methods and fields of Enum are inherited.
AclFileAttributeView#
interface · java.nio.file.attribute.AclFileAttributeView
Extends: FileOwnerAttributeView
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getAcl | getAcl() | List getAcl() |
getOwner | getOwner() | UserPrincipal getOwner() |
name | name() | String name() |
setAcl | setAcl(acl) | void setAcl(List acl) |
setOwner | setOwner(owner) | void setOwner(UserPrincipal owner) |
AttributeView#
interface · java.nio.file.attribute.AttributeView
Methods
| Method | Ring call | Java overloads |
|---|---|---|
name | name() | String name() |
BasicFileAttributes#
interface · java.nio.file.attribute.BasicFileAttributes
Methods
| Method | Ring call | Java overloads |
|---|---|---|
creationTime | creationTime() | FileTime creationTime() |
fileKey | fileKey() | Object fileKey() |
isDirectory | isDirectory() | boolean isDirectory() |
isOther | isOther() | boolean isOther() |
isRegularFile | isRegularFile() | boolean isRegularFile() |
isSymbolicLink | isSymbolicLink() | boolean isSymbolicLink() |
lastAccessTime | lastAccessTime() | FileTime lastAccessTime() |
lastModifiedTime | lastModifiedTime() | FileTime lastModifiedTime() |
size | size() | long size() |
BasicFileAttributeView#
interface · java.nio.file.attribute.BasicFileAttributeView
Extends: FileAttributeView
Methods
| Method | Ring call | Java overloads |
|---|---|---|
name | name() | String name() |
readAttributes | readAttributes() | BasicFileAttributes readAttributes() |
setTimes | setTimes(lastModifiedTime,lastAccessTime,createTime) | void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) |
DosFileAttributes#
interface · java.nio.file.attribute.DosFileAttributes
Extends: BasicFileAttributes
Methods
| Method | Ring call | Java overloads |
|---|---|---|
creationTime | creationTime() | FileTime creationTime() |
fileKey | fileKey() | Object fileKey() |
isArchive | isArchive() | boolean isArchive() |
isDirectory | isDirectory() | boolean isDirectory() |
isHidden | isHidden() | boolean isHidden() |
isOther | isOther() | boolean isOther() |
isReadOnly | isReadOnly() | boolean isReadOnly() |
isRegularFile | isRegularFile() | boolean isRegularFile() |
isSymbolicLink | isSymbolicLink() | boolean isSymbolicLink() |
isSystem | isSystem() | boolean isSystem() |
lastAccessTime | lastAccessTime() | FileTime lastAccessTime() |
lastModifiedTime | lastModifiedTime() | FileTime lastModifiedTime() |
size | size() | long size() |
DosFileAttributeView#
interface · java.nio.file.attribute.DosFileAttributeView
Extends: BasicFileAttributeView
Methods
| Method | Ring call | Java overloads |
|---|---|---|
name | name() | String name() |
readAttributes | readAttributes() | DosFileAttributes readAttributes() |
setArchive | setArchive(value) | void setArchive(boolean value) |
setHidden | setHidden(value) | void setHidden(boolean value) |
setReadOnly | setReadOnly(value) | void setReadOnly(boolean value) |
setSystem | setSystem(value) | void setSystem(boolean value) |
setTimes | setTimes(lastModifiedTime,lastAccessTime,createTime) | void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) |
FileAttribute#
interface · java.nio.file.attribute.FileAttribute
Methods
| Method | Ring call | Java overloads |
|---|---|---|
name | name() | String name() |
value | value() | Object value() |
FileAttributeView#
interface · java.nio.file.attribute.FileAttributeView
FileOwnerAttributeView#
interface · java.nio.file.attribute.FileOwnerAttributeView
Extends: FileAttributeView
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getOwner | getOwner() | UserPrincipal getOwner() |
name | name() | String name() |
setOwner | setOwner(owner) | void setOwner(UserPrincipal owner) |
FileStoreAttributeView#
interface · java.nio.file.attribute.FileStoreAttributeView
FileTime#
class final · extends Object · java.nio.file.attribute.FileTime
Implements: Comparable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
compareTo | compareTo(other) | int compareTo(FileTime other) |
from | from(instant)from([value,unit])from([ :value = v, :unit = v ]) | static FileTime from(Instant instant)static FileTime from(long value, TimeUnit unit) |
fromMillis | fromMillis(value) | static FileTime fromMillis(long value) |
to | to(unit) | long to(TimeUnit unit) |
toInstant | toInstant() | Instant toInstant() |
toMillis | toMillis() | long toMillis() |
The methods and fields of Object are inherited.
GroupPrincipal#
interface · java.nio.file.attribute.GroupPrincipal
Extends: UserPrincipal
Methods
| Method | Ring call | Java overloads |
|---|---|---|
equals | equals(another) | boolean equals(Object another) |
getName | getName() | String getName() |
hashCode | hashCode() | int hashCode() |
implies | implies(subject) | boolean implies(Subject subject) |
PosixFileAttributes#
interface · java.nio.file.attribute.PosixFileAttributes
Extends: BasicFileAttributes
Methods
| Method | Ring call | Java overloads |
|---|---|---|
creationTime | creationTime() | FileTime creationTime() |
fileKey | fileKey() | Object fileKey() |
group | group() | GroupPrincipal group() |
isDirectory | isDirectory() | boolean isDirectory() |
isOther | isOther() | boolean isOther() |
isRegularFile | isRegularFile() | boolean isRegularFile() |
isSymbolicLink | isSymbolicLink() | boolean isSymbolicLink() |
lastAccessTime | lastAccessTime() | FileTime lastAccessTime() |
lastModifiedTime | lastModifiedTime() | FileTime lastModifiedTime() |
owner | owner() | UserPrincipal owner() |
permissions | permissions() | Set permissions() |
size | size() | long size() |
PosixFileAttributeView#
interface · java.nio.file.attribute.PosixFileAttributeView
Extends: BasicFileAttributeView, FileOwnerAttributeView
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getOwner | getOwner() | UserPrincipal getOwner() |
name | name() | String name() |
readAttributes | readAttributes() | PosixFileAttributes readAttributes() |
setGroup | setGroup(group) | void setGroup(GroupPrincipal group) |
setOwner | setOwner(owner) | void setOwner(UserPrincipal owner) |
setPermissions | setPermissions(perms) | void setPermissions(Set perms) |
setTimes | setTimes(lastModifiedTime,lastAccessTime,createTime) | void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) |
PosixFilePermission#
enum · extends Enum · java.nio.file.attribute.PosixFilePermission
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
OWNER_READ | PosixFilePermission | constant · static | o.OWNER_READ |
OWNER_WRITE | PosixFilePermission | constant · static | o.OWNER_WRITE |
OWNER_EXECUTE | PosixFilePermission | constant · static | o.OWNER_EXECUTE |
GROUP_READ | PosixFilePermission | constant · static | o.GROUP_READ |
GROUP_WRITE | PosixFilePermission | constant · static | o.GROUP_WRITE |
GROUP_EXECUTE | PosixFilePermission | constant · static | o.GROUP_EXECUTE |
OTHERS_READ | PosixFilePermission | constant · static | o.OTHERS_READ |
OTHERS_WRITE | PosixFilePermission | constant · static | o.OTHERS_WRITE |
OTHERS_EXECUTE | PosixFilePermission | constant · static | o.OTHERS_EXECUTE |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static PosixFilePermission valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static PosixFilePermission[] values() |
The methods and fields of Enum are inherited.
PosixFilePermissions#
class final · extends Object · java.nio.file.attribute.PosixFilePermissions
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@toString | @toString(perms) | static String toString(Set perms) |
asFileAttribute | asFileAttribute(perms) | static FileAttribute asFileAttribute(Set perms) |
fromString | fromString(perms) | static Set fromString(String perms) |
The methods and fields of Object are inherited.
UserDefinedFileAttributeView#
interface · java.nio.file.attribute.UserDefinedFileAttributeView
Extends: FileAttributeView
Methods
| Method | Ring call | Java overloads |
|---|---|---|
delete | delete(name) | void delete(String name) |
list | list() | List list() |
name | name() | String name() |
read | read(name,dst) | int read(String name, ByteBuffer dst) |
size | size(name) | int size(String name) |
write | write(name,src) | int write(String name, ByteBuffer src) |
UserPrincipal#
interface · java.nio.file.attribute.UserPrincipal
Extends: Principal
Methods
| Method | Ring call | Java overloads |
|---|---|---|
equals | equals(another) | boolean equals(Object another) |
getName | getName() | String getName() |
hashCode | hashCode() | int hashCode() |
implies | implies(subject) | boolean implies(Subject subject) |
UserPrincipalLookupService#
abstract · extends Object · java.nio.file.attribute.UserPrincipalLookupService
Methods
| Method | Ring call | Java overloads |
|---|---|---|
lookupPrincipalByGroupName | lookupPrincipalByGroupName(group) | GroupPrincipal lookupPrincipalByGroupName(String group) |
lookupPrincipalByName | lookupPrincipalByName(name) | UserPrincipal lookupPrincipalByName(String name) |
The methods and fields of Object are inherited.
UserPrincipalNotFoundException#
class · extends IOException · java.nio.file.attribute.UserPrincipalNotFoundException
Constructors
new UserPrincipalNotFoundException(String name) |
Ring: new UserPrincipalNotFoundException(args) uses the constructor with the fewest parameters (at least one); new UserPrincipalNotFoundException makes the object with the constructor without parameters; the others: (new UserPrincipalNotFoundException).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getName | getName() | String getName() |
The methods and fields of IOException are inherited.