Build 1.0_r1(from source)

java.io
Class FilePermissionCollection

java.lang.Object
  extended by java.security.PermissionCollection
      extended by java.io.FilePermissionCollection
All Implemented Interfaces:
Serializable

final class FilePermissionCollection
extends PermissionCollection
implements Serializable

FilePermissionCollection is a class which holds a collection of FilePermission objects and can answer a boolean indicating whether or not a specific permissions is implied by a FilePermissionCollection.


Field Summary
(package private)  Vector<Permission> permissions
           
 
Constructor Summary
FilePermissionCollection()
          Construct a new FilePermissionCollection.
 
Method Summary
 void add(Permission permission)
          Add a permission Object to the permission collection.
 Enumeration<Permission> elements()
          Returns an enumeration for the collection of permissions.
 boolean implies(Permission permission)
          Returns a boolean indicating whether or not this permissions collection implies a specific permission.
 
Methods inherited from class java.security.PermissionCollection
isReadOnly, setReadOnly, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

permissions

Vector<Permission> permissions
Constructor Detail

FilePermissionCollection

public FilePermissionCollection()
Construct a new FilePermissionCollection.

Method Detail

add

public void add(Permission permission)
Add a permission Object to the permission collection.

Specified by:
add in class PermissionCollection
Parameters:
permission - java.security.Permission the permission to add to the collection.
See Also:
PermissionCollection.add(java.security.Permission)

elements

public Enumeration<Permission> elements()
Returns an enumeration for the collection of permissions.

Specified by:
elements in class PermissionCollection
Returns:
Enumeration the permissions in the receiver.
See Also:
PermissionCollection.elements()

implies

public boolean implies(Permission permission)
Returns a boolean indicating whether or not this permissions collection implies a specific permission.

Specified by:
implies in class PermissionCollection
Parameters:
permission - java.security.Permission the permission to check
Returns:
boolean true if the argument permission is implied by the permissions in the receiver, and false if it is not.
See Also:
PermissionCollection.implies(java.security.Permission)

Build 1.0_r1(from source)

Please submit a feedback, bug or feature