This method of the FileIOPermission Class adds a pattern that specifies a set of files that are allowed or denied for writing.
public void addWriteableFiles(String pattern, boolean allow);
pattern | The string that indicates which files to allow or deny. It must be of the form accepted by a WildcardExpression with the ESCAPED flag enabled. |
allow | The flag that indicates whether you are allowing or denying the files specified by the pattern. If the value is true, the files are allowed. Otherwise, the files are denied. You can deny files only if the file was previously allowed. |