Uses of Enum Class
java.nio.file.attribute.PosixFilePermission
Package
Description
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
Interfaces and classes providing access to file and file system attributes.
-
Uses of PosixFilePermission in java.nio.file
Modifier and TypeMethodDescriptionstatic Set
<PosixFilePermission> Files.getPosixFilePermissions
(Path path, LinkOption... options) Returns a file's POSIX file permissions.Modifier and TypeMethodDescriptionstatic Path
Files.setPosixFilePermissions
(Path path, Set<PosixFilePermission> perms) Sets a file's POSIX permissions. -
Uses of PosixFilePermission in java.nio.file.attribute
Modifier and TypeMethodDescriptionstatic PosixFilePermission
Returns the enum constant of this class with the specified name.static PosixFilePermission[]
PosixFilePermission.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionstatic FileAttribute
<Set<PosixFilePermission>> PosixFilePermissions.asFileAttribute
(Set<PosixFilePermission> perms) Creates aFileAttribute
, encapsulating a copy of the given file permissions, suitable for passing to thecreateFile
orcreateDirectory
methods.static Set
<PosixFilePermission> PosixFilePermissions.fromString
(String perms) Returns the set of permissions corresponding to a givenString
representation.PosixFileAttributes.permissions()
Returns the permissions of the file.Modifier and TypeMethodDescriptionstatic FileAttribute
<Set<PosixFilePermission>> PosixFilePermissions.asFileAttribute
(Set<PosixFilePermission> perms) Creates aFileAttribute
, encapsulating a copy of the given file permissions, suitable for passing to thecreateFile
orcreateDirectory
methods.void
PosixFileAttributeView.setPermissions
(Set<PosixFilePermission> perms) Updates the file permissions.static String
PosixFilePermissions.toString
(Set<PosixFilePermission> perms) Returns theString
representation of a set of permissions.