lightbulb_outline Please take our October 2018 developer survey. Start survey

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

added in API level 26
public static PosixFilePermission valueOf (String name)

Parameters
name String

Returns
PosixFilePermission

values

added in API level 26
public static final PosixFilePermission[] values ()

Returns
PosixFilePermission[]