Microsoft SDK for Java

addWriteableFile

This method of the FileIOPermission Class adds a file to the set, either allowing or denying that file for write access.

Syntax

public void addWriteableFile(String filename, boolean allowed) throws IOException;

Calling this method is equivalent to the following call:

addFile(FileIORequest.WRITE,filename,allowed)

Parameters

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.

Exceptions

IOException if an error occurs while getting the full name of the file.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.