This method of the FileIOPermission Class adds a set of files to this permission, either allowing or denying those files for the specified access type. The files to be added are specified as a WildcardExpression object.
public void addFiles(int access, WildcardExpression newspec, boolean allowed);
access | An access type that is one of the following values: FileIORequest.READ, FileIORequest.WRITE, or FileIORequest.DELETE. |
newspec | The wildcard expression that indicates the files to add. |
allowed | The flag that indicates whether you are allowing or denying the file for the specified access type. If the value is true, the files are allowed; otherwise, they are denied. |