Share via


JavaSystem.SetIn(Stream) Method

Definition

Reassigns the "standard" input stream.

[Android.Runtime.Register("setIn", "(Ljava/io/InputStream;)V", "")]
public static void SetIn (System.IO.Stream? in);
[<Android.Runtime.Register("setIn", "(Ljava/io/InputStream;)V", "")>]
static member SetIn : System.IO.Stream -> unit

Parameters

in
Stream

the new standard input stream.

Attributes

Remarks

Reassigns the "standard" input 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" input stream.

Added in JDK1.1.

Java documentation for java.lang.System.setIn(java.io.InputStream).

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