Microsoft SDK for Java

adjustPermission

This method of the FileIOPermission Class adjusts the permission object with some run-time state.

Syntax

public void adjustPermission(String tag, Object adjustment);

Parameters

tag The adjustment type. Every type except "codebase" is ignored.
adjustment This parameter must be an instance of java.net.URL for the "codebase" tag.

Remarks

The FileIOPermission only responds to the "codebase" adjustment type, and expects the adjustment parameter to be of type URL in that case. All other adjustment types are ignored.

If the URL is a file:// URL and if the permission allows reading from file:// URL codebases, this method adds read access for the "codebase" directory (and everything below it) to the permission object.

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