class PathPermissions extends PermissionCollection
| Constructor and Description |
|---|
PathPermissions(File[] path) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Permission permission)
Adds a permission object to the current collection of permission objects.
|
Enumeration |
elements()
Returns an enumeration of all the Permission objects in the collection.
|
(package private) URL |
getCodeBase() |
boolean |
implies(Permission permission)
Checks to see if the specified permission is implied by
the collection of Permission objects held in this PermissionCollection.
|
String |
toString()
Returns a string describing this PermissionCollection object,
providing information about all the permissions it contains.
|
isReadOnly, setReadOnlyPathPermissions(File[] path)
URL getCodeBase()
public void add(Permission permission)
PermissionCollectionadd in class PermissionCollectionpermission - the Permission object to add.public boolean implies(Permission permission)
PermissionCollectionimplies in class PermissionCollectionpermission - the Permission object to compare.public Enumeration elements()
PermissionCollectionelements in class PermissionCollectionpublic String toString()
PermissionCollectionsuper.toString() ( // enumerate all the Permission // objects and call toString() on them, // one per line.. )
super.toString is a call to the toString
method of this
object's superclass, which is Object. The result is
this PermissionCollection's type name followed by this object's
hashcode, thus enabling clients to differentiate different
PermissionCollections object, even if they contain the same permissions.toString in class PermissionCollection