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
public static final AccessMode EXECUTE

Test execute access.

READ

Added in API level 26
public static final AccessMode READ

Test read access.

WRITE

Added in API level 26
public static final AccessMode WRITE

Test write access.

Public methods

valueOf

public static AccessMode valueOf (String name)

Parameters
name String

Returns
AccessMode

values

public static final AccessMode[] values ()

Returns
AccessMode[]