java.io
public final class FilePermission extends Permission implements Serializable
Constructor Summary | |
---|---|
FilePermission(String pathExpression, String actionsString)
Create a new FilePermission.
|
Method Summary | |
---|---|
boolean | equals(Object o)
Check two FilePermissions for semantic equality.
|
String | getActions()
Get the actions this FilePermission supports. |
int | hashCode()
Get the hash code for this Object. FilePermission's hash code is calculated as the exclusive or of the target String's hash code and the action String's hash code. |
boolean | implies(Permission p)
Check to see if this permission implies another.
|
Parameters: pathExpression an expression specifying the paths this permission represents. actionsString a comma-separated list of the actions this permission represents. The actions must be "read", "write", "execute" and/or "delete".
Parameters: o the Object to compare to.
Returns: whether the Objects are semantically equivalent.
Returns: the String representing the actions this FilePermission supports.
FilePermission's hash code is calculated as the exclusive or of the target String's hash code and the action String's hash code.
Returns: the hash code for this Object.
UNKNOWN: Sun did not specify how to calculate the hash code; I made this up.
Parameters: p the Permission to compare against.
Returns: whether this Permission implies p