ProcessBuilder.RedirectErrorStream Method

Definition

Overloads

RedirectErrorStream()

Tells whether this process builder merges standard error and standard output.

RedirectErrorStream(Boolean)

Sets this process builder's redirectErrorStream property.

RedirectErrorStream()

Tells whether this process builder merges standard error and standard output.

[Android.Runtime.Register("redirectErrorStream", "()Z", "")]
public bool RedirectErrorStream ();
[<Android.Runtime.Register("redirectErrorStream", "()Z", "")>]
member this.RedirectErrorStream : unit -> bool

Returns

this process builder's redirectErrorStream property

Attributes

Remarks

Tells whether this process builder merges standard error and standard output.

If this property is true, then any error output generated by subprocesses subsequently started by this object's #start() method will be merged with the standard output, so that both can be read using the Process#getInputStream() method. This makes it easier to correlate error messages with the corresponding output. The initial value is false.

Java documentation for java.lang.ProcessBuilder.redirectErrorStream().

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

RedirectErrorStream(Boolean)

Sets this process builder's redirectErrorStream property.

[Android.Runtime.Register("redirectErrorStream", "(Z)Ljava/lang/ProcessBuilder;", "")]
public Java.Lang.ProcessBuilder? RedirectErrorStream (bool redirectErrorStream);
[<Android.Runtime.Register("redirectErrorStream", "(Z)Ljava/lang/ProcessBuilder;", "")>]
member this.RedirectErrorStream : bool -> Java.Lang.ProcessBuilder

Parameters

redirectErrorStream
Boolean

the new property value

Returns

this process builder

Attributes

Remarks

Sets this process builder's redirectErrorStream property.

If this property is true, then any error output generated by subprocesses subsequently started by this object's #start() method will be merged with the standard output, so that both can be read using the Process#getInputStream() method. This makes it easier to correlate error messages with the corresponding output. The initial value is false.

Java documentation for java.lang.ProcessBuilder.redirectErrorStream(boolean).

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