API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.io. FilePermission View Source
Author(s)
Marianne Mueller
Roland Schemers
Since
1.2
Version
1.80 05/11/17
Serial
exclude
Hierarchy
 Object
      Permission
          FilePermission
Implements
 Serializable
Subclasses
Description
publicfinal class FilePermission
  This class represents access to a file or directory.
Constructors
pack-private FilePermission (String path, int mask)
  Creates a new FilePermission object using an action mask.
public FilePermission (String path, String actions)
  Creates a new FilePermission object with the specified actions.
Methods
Hide/Show inherited methods
public void checkGuard (Object object) throws SecurityException [Inherited From Permission]
  Implements the guard interface for a permission.
public boolean equals (Object obj) [Specified in Permission]
  Checks two FilePermission objects for equality.
public String getActions () [Specified in Permission]
  Returns the "canonical string representation" of the actions.
pack-private int getMask ()
  Return the current action mask.
publicfinal String getName () [Inherited From Permission]
  Returns the name of this Permission.
public int hashCode () [Specified in Permission]
  Returns the hash code value for this object.
public boolean implies (Permission p) [Specified in Permission]
  Checks if this FilePermission object "implies" the specified permission.
pack-private boolean impliesIgnoreMask (FilePermission that)
  Checks if the Permission's actions are a proper subset of the this object's actions.
public PermissionCollection newPermissionCollection () [Overrides Permission]
  Returns a new PermissionCollection object for storing FilePermission objects.
public String toString () [Inherited From Permission]
  Returns a string describing this Permission.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar