This method of the FileIOPermission Class adds a file to the set, either allowing or denying that file for read access.
public void addReadableFile(String filename, boolean allowed) throws IOException;
Calling this method is equivalent to the following call:
addFile(FileIORequest.READ,filename,allowed)
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.