Compartilhar via


JavaSystem.SetErr(PrintStream) Method

Definition

Reassigns the "standard" error output stream.

[Android.Runtime.Register("setErr", "(Ljava/io/PrintStream;)V", "")]
public static void SetErr (Java.IO.PrintStream? err);
[<Android.Runtime.Register("setErr", "(Ljava/io/PrintStream;)V", "")>]
static member SetErr : Java.IO.PrintStream -> unit

Parameters

err
PrintStream

the new standard error output stream.

Attributes

Remarks

Reassigns the "standard" error output stream.

First, if there is a security manager, its checkPermission method is called with a RuntimePermission("setIO") permission to see if it's ok to reassign the "standard" error output stream.

Added in JDK1.1.

Java documentation for java.lang.System.setErr(java.io.PrintStream).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to