PosixFilePermission

public final enum PosixFilePermission
extends Enum<PosixFilePermission>

java.lang.Object
   ↳ java.lang.Enum<java.nio.file.attribute.PosixFilePermission>
     ↳ java.nio.file.attribute.PosixFilePermission


Defines the bits for use with the permissions attribute.

The PosixFilePermissions class defines methods for manipulating set of permissions.

Summary

Enum values

PosixFilePermission  GROUP_EXECUTE

Execute/search permission, group. 

PosixFilePermission  GROUP_READ

Read permission, group. 

PosixFilePermission  GROUP_WRITE

Write permission, group. 

PosixFilePermission  OTHERS_EXECUTE

Execute/search permission, others. 

PosixFilePermission  OTHERS_READ

Read permission, others. 

PosixFilePermission  OTHERS_WRITE

Write permission, others. 

PosixFilePermission  OWNER_EXECUTE

Execute/search permission, owner. 

PosixFilePermission  OWNER_READ

Read permission, owner. 

PosixFilePermission  OWNER_WRITE

Write permission, owner. 

Public methods

static PosixFilePermission valueOf(String name)
static final PosixFilePermission[] values()

Inherited methods

Enum values

GROUP_EXECUTE

added in API level 26
PosixFilePermission GROUP_EXECUTE

Execute/search permission, group.

GROUP_READ

added in API level 26
PosixFilePermission GROUP_READ

Read permission, group.

GROUP_WRITE

added in API level 26
PosixFilePermission GROUP_WRITE

Write permission, group.

OTHERS_EXECUTE

added in API level 26
PosixFilePermission OTHERS_EXECUTE

Execute/search permission, others.

OTHERS_READ

added in API level 26
PosixFilePermission OTHERS_READ

Read permission, others.

OTHERS_WRITE

added in API level 26
PosixFilePermission OTHERS_WRITE

Write permission, others.

OWNER_EXECUTE

added in API level 26
PosixFilePermission OWNER_EXECUTE

Execute/search permission, owner.

OWNER_READ

added in API level 26
PosixFilePermission OWNER_READ

Read permission, owner.

OWNER_WRITE

added in API level 26
PosixFilePermission OWNER_WRITE

Write permission, owner.

Public methods

valueOf

added in API level 26
PosixFilePermission valueOf (String name)

Parameters
name String

Returns
PosixFilePermission

values

added in API level 26
PosixFilePermission[] values ()

Returns
PosixFilePermission[]