| Package | Description |
|---|---|
| java.nio.file |
Defines interfaces and classes for the Java virtual machine to access files, file attributes, and file systems.
|
| java.nio.file.attribute |
Interfaces and classes providing access to file and file system attributes.
|
| Modifier and Type | Method and Description |
|---|---|
static Set |
Files.getPosixFilePermissions(Path
Returns a file's POSIX file permissions.
|
| Modifier and Type | Method and Description |
|---|---|
static Path |
Files.setPosixFilePermissions(Path
Sets a file's POSIX permissions.
|
| Modifier and Type | Method and Description |
|---|---|
static PosixFilePermission |
PosixFilePermission.valueOf(String
Returns the enum constant of this type with the specified name.
|
static PosixFilePermission |
PosixFilePermission.values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static FileAttribute |
PosixFilePermissions.asFileAttribute(Set
Creates a
FileAttribute, encapsulating a copy of the given file permissions, suitable for passing to the
createFile or
createDirectory methods.
|
static Set |
PosixFilePermissions.fromString(String
Returns the set of permissions corresponding to a given
String representation.
|
Set |
PosixFileAttributes.permissions()
Returns the permissions of the file.
|
| Modifier and Type | Method and Description |
|---|---|
static FileAttribute |
PosixFilePermissions.asFileAttribute(Set
Creates a
FileAttribute, encapsulating a copy of the given file permissions, suitable for passing to the
createFile or
createDirectory methods.
|
void |
PosixFileAttributeView.setPermissions(Set
Updates the file permissions.
|
static String |
PosixFilePermissions.toString(Set
Returns the
String representation of a set of permissions.
|