This method of the SystemStreamsPermission Class determines whether the permission object allows the specified system stream to be set.
public void check(Object param) throws SecurityException;
param | The security request parameter. This parameter must be an instance of java.lang.Integer, whose value is interpreted as follows:
0 Indicates an attempt to set System.in. 1 Indicates an attempt to set System.out. 2 Indicates an attempt to set System.err. |
SecurityException if the permission does not allow the specified operation.