PosixFilePermission objects.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static FileAttribute | asFileAttribute(Set<PosixFilePermission>
the set of permissions perms)Creates a |
| public static Set | Returns: the resulting set of permissionsstring representing a set of permissions perms)Returns the set of permissions corresponding to a given |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| public static String | Returns: the string representation of the permission setthe set of permissions perms)Returns the |
| private static void |
| PosixFilePermissions | back to summary |
|---|---|
| private PosixFilePermissions() | |
| asFileAttribute | back to summary |
|---|---|
| public static FileAttribute Creates a
| |
| fromString | back to summary |
|---|---|
| public static Set Returns the set of permissions corresponding to a given The Usage Example: Suppose we require the set of permissions that indicate the owner has read, write, and execute permissions, the group has read and execute permissions and others have none. Set<PosixFilePermission> perms = PosixFilePermissions.fromString("rwxr-x---");
| |
| isR | back to summary |
|---|---|
| private static boolean isR(char c) | |
| isSet | back to summary |
|---|---|
| private static boolean isSet(char c, char setValue) | |
| isW | back to summary |
|---|---|
| private static boolean isW(char c) | |
| isX | back to summary |
|---|---|
| private static boolean isX(char c) | |
| toString | back to summary |
|---|---|
| public static String toString(Set<PosixFilePermission> perms) Returns the If the set contains
| |
| writeBits | back to summary |
|---|---|
| private static void writeBits(StringBuilder sb, boolean r, boolean w, boolean x) | |