This method of the FileIOPermission Class adds a file to the set, either allowing or denying that file for delete access.
public void addDeleteableFile(String filename, boolean allowed) throws IOException;
filename | The name of the file to add to the permission. |
allowed | The flag that indicates whether you are allowing or denying the file. If the value is true, the file is allowed; otherwise, the file is denied. |
IOException if an error occurs while getting the full name of the file.