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
public static final PosixFilePermission GROUP_EXECUTE

Execute/search permission, group.

GROUP_READ

Added in API level 26
public static final PosixFilePermission GROUP_READ

Read permission, group.

GROUP_WRITE

Added in API level 26
public static final PosixFilePermission GROUP_WRITE

Write permission, group.

OTHERS_EXECUTE

Added in API level 26
public static final PosixFilePermission OTHERS_EXECUTE

Execute/search permission, others.

OTHERS_READ

Added in API level 26
public static final PosixFilePermission OTHERS_READ

Read permission, others.

OTHERS_WRITE

Added in API level 26
public static final PosixFilePermission OTHERS_WRITE

Write permission, others.

OWNER_EXECUTE

Added in API level 26
public static final PosixFilePermission OWNER_EXECUTE

Execute/search permission, owner.

OWNER_READ

Added in API level 26
public static final PosixFilePermission OWNER_READ

Read permission, owner.

OWNER_WRITE

Added in API level 26
public static final PosixFilePermission OWNER_WRITE

Write permission, owner.

Public methods

valueOf

public static PosixFilePermission valueOf (String name)

Parameters
name String

Returns
PosixFilePermission

values

public static final PosixFilePermission[] values ()

Returns
PosixFilePermission[]