Microsoft SDK for Java

addFiles

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.

Syntax

public void addFiles(int access, WildcardExpression newspec, boolean allowed);



Parameters

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.

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