Essential Classes Java Book

This class is used to create operating system processes.
Create ProcessBuilder
ProcessBuilder(List command)
Creates a process builder with the specified operating system program and arguments.
ProcessBuilder(String... command)
Creates a process builder with the specified operating system program and arguments.
List command()
Returns this process builder's operating system program and arguments.
ProcessBuilder command(List command)
Sets this process builder's operating system program and arguments.
ProcessBuilder command(String... command)
Sets this process builder's operating system program and arguments.
File directory()
Returns this process builder's working directory.
ProcessBuilder directory(File directory)
Sets this process builder's working directory.
Map environment()
Returns a string map view of this process builder's environment.
boolean redirectErrorStream()
Tells whether this process builder merges standard error and standard output.
ProcessBuilder redirectErrorStream(boolean redirectErrorStream)
Sets this process builder's redirectErrorStream property.
Process start()
Starts a new process using the attributes of this process builder.
Revised from Open JDK source code