public class Permissions extends Object
Modifier and Type | Field and Description |
---|---|
static Permissions |
ALL |
static Permissions |
DEFAULT |
static Permissions |
NONE |
Constructor and Description |
---|
Permissions(String rwxString)
Costruct a new instance for the specified read/write/execute specification String
|
Modifier and Type | Method and Description |
---|---|
String |
asRwxString()
Return the read/write/execute specification String representing the set of permissions.
|
boolean |
canGroupExecute() |
boolean |
canGroupRead() |
boolean |
canGroupWrite() |
boolean |
canUserExecute() |
boolean |
canUserRead() |
boolean |
canUserWrite() |
boolean |
canWorldExecute() |
boolean |
canWorldRead() |
boolean |
canWorldWrite() |
boolean |
equals(Object object) |
String |
getRwxString() |
int |
hashCode()
Return the hash code for this object.
|
String |
toString() |
public static final Permissions ALL
public static final Permissions NONE
public static final Permissions DEFAULT
public Permissions(String rwxString)
rwxString
- - the read/write/execute specification String; must be 9 characters long, with chars
at index 0,3,6 == '-' or 'r', chars at index 1,4,7 == '-' or 'w' and chars at index 2,5,8 == '-' or 'x'.public String asRwxString()
public String getRwxString()
public boolean equals(Object object)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean canUserRead()
public boolean canUserWrite()
public boolean canUserExecute()
public boolean canGroupRead()
public boolean canGroupWrite()
public boolean canGroupExecute()
public boolean canWorldRead()
public boolean canWorldWrite()
public boolean canWorldExecute()
Copyright © 2016. All rights reserved.