Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.io

Class FilePermission

java.lang.Object
|
+--java.security.Permission
   |
   +--java.io.FilePermission

All Implemented Interfaces:

Serializable, Guard, Serializable


public final class FilePermission

extends Permission

implements Serializable

Constructor Summary

FilePermission(java.lang.String pathExpression, java.lang.String actionsString)

Create a new FilePermission.

Method Summary

booleanequals(java.lang.Object o)

Check two FilePermissions for semantic equality.
java.lang.StringgetActions()

Get the actions this FilePermission supports.
inthashCode()

Get the hash code for this Object.
booleanimplies(java.security.Permission p)

Check to see if this permission implies another.

Constructor Details

FilePermission

public FilePermission(java.lang.String pathExpression, java.lang.String actionsString)

Create a new FilePermission.

Parameters:


Method Details

equals

public boolean equals(java.lang.Object o)

Check two FilePermissions for semantic equality. Two FilePermissions are exactly equivalent if they have identical path expressions and have exactly the same access permissions.

Parameters:

Returns:


getActions

public String getActions()

Get the actions this FilePermission supports.

Returns:


hashCode

public 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.

Returns:


implies

public boolean implies(java.security.Permission p)

Check to see if this permission implies another. Permission A implies permission B if these things are all true:
  1. A and B are both FilePermissions.
  2. All possible files in B are included in A (possibly more are in A).
  3. All actions B supports, A also supports.

Parameters:

Returns: