This method of the FileIOPermission Class retrieves a WildcardExpression object that indicates all the files that this permission object matches for the specified access type.
public WildcardExpression getFiles(int access, boolean allowed);
Returns the wildcard expression that indicates the matching files.
access | An access type that is one of the following values: FileIORequest.READ, FileIORequest.WRITE, or FileIORequest.DELETE. |
allowed | The flag that indicates whether this method retrieves the pattern that matches files that have been explicitly allowed or explicitly denied. If true, this method returns the pattern for files that have been explicitly allowed; otherwise, it returns the pattern for files that have been explicitly denied. |