AccessMode

public final enum AccessMode
extends Enum<AccessMode>

java.lang.Object
   ↳ java.lang.Enum<java.nio.file.AccessMode>
     ↳ java.nio.file.AccessMode


Defines access modes used to test the accessibility of a file.

Summary

Enum values

AccessMode  EXECUTE

Test execute access. 

AccessMode  READ

Test read access. 

AccessMode  WRITE

Test write access. 

Public methods

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

Inherited methods

Enum values

EXECUTE

added in API level 26
AccessMode EXECUTE

Test execute access.

READ

added in API level 26
AccessMode READ

Test read access.

WRITE

added in API level 26
AccessMode WRITE

Test write access.

Public methods

valueOf

added in API level 26
AccessMode valueOf (String name)

Parameters
name String

Returns
AccessMode

values

added in API level 26
AccessMode[] values ()

Returns
AccessMode[]