Microsoft SDK for Java

UserFileIOPermission Class Methods

The UserFileIOPermission Class contains the following methods:

canRead determines whether the object allows user-directed file I/O for reading files.
canWrite determines whether the object allows user-directed file I/O for writing files.
check determines whether the permission object allows the specified user-directed file I/O operation.
combine creates and returns a new UserFileIOPermission object that is a combination of the current permission object and the specified permission object.
compareSet compares the UserFileIOPermission instance with a specified permission object.
copy retrieves a copy of the UserFileIOPermission object.
decode decodes the contents of the specified data stream into this permission object.
encode encodes the contents of this permission object, and sends the encoded data to the specified stream.
getAccessFlags retrieves the access types allowed by the permission object.
mapFormat retrieves a permission-specific tag, given an encoding format.
setAccessFlags sets the types of user-directed file I/O access that the permission object should allow.
supportedFormats retrieves the encoding formats that the permission type supports.
toString retrieves a textual representation of the permission object.

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