ProcessBuilder.InheritIO Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the source and destination for subprocess standard I/O to be the same as those of the current Java process.
[Android.Runtime.Register("inheritIO", "()Ljava/lang/ProcessBuilder;", "", ApiSince=26)]
public Java.Lang.ProcessBuilder? InheritIO ();
[<Android.Runtime.Register("inheritIO", "()Ljava/lang/ProcessBuilder;", "", ApiSince=26)>]
member this.InheritIO : unit -> Java.Lang.ProcessBuilder
Returns
this process builder
- Attributes
Remarks
Sets the source and destination for subprocess standard I/O to be the same as those of the current Java process.
This is a convenience method. An invocation of the form
{@code
pb.inheritIO()
}
behaves in exactly the same way as the invocation
{@code
pb.redirectInput(Redirect.INHERIT)
.redirectOutput(Redirect.INHERIT)
.redirectError(Redirect.INHERIT)
}
This gives behavior equivalent to most operating system command interpreters, or the standard C library function system()
.
Added in 1.7.
Java documentation for java.lang.ProcessBuilder.inheritIO()
.
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.