Microsoft SDK for Java

SystemStreamsPermission Class Methods

The SystemStreamsPermission Class contains the following methods:

canSetSystemErr determines whether the permission object allows the System.err stream to be set.
canSetSystemIn determines whether the permission object allows the System.in stream to be set.
canSetSystemOut determines whether the permission object allows the System.out stream to be set.
check determines whether the permission object allows the specified system stream to be set.
combine creates and returns a new SystemStreamsPermission object that is a combination of the current permission object and the specified permission object.
compareSet compares the SystemStreamsPermission instance with a specified permission object.
copy retrieves a copy of the SystemStreamsPermission 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.
mapFormat retrieves a permission-specific tag, given an encoding format.
reset resets the permission object to a state where it does not allow access to any of the system streams.
setCanSetSystemErr sets whether this permission object allows the system stream System.err to be set by classes that possess this permission instance.
setCanSetSystemIn sets whether this permission object allows the system stream System.in to be set by classes that possess this permission instance.
setCanSetSystemOut sets whether this permission object allows the system stream System.out to be set by classes that possess this permission instance.
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.