API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.lang. ProcessBuilder View Source
Author(s)
Since
1.5
Version
Serial
Hierarchy
 Object
      ProcessBuilder
Implements
Subclasses
Description
publicfinal class ProcessBuilder
  This class is used to create operating system processes.
See also:   
Constructors
public ProcessBuilder (List<String> command)
  Constructs a process builder with the specified operating system program and arguments.
public ProcessBuilder (String command)
  Constructs a process builder with the specified operating system program and arguments.
Methods
Hide/Show inherited methods
public List<String> command ()
  Returns this process builder's operating system program and arguments.
public ProcessBuilder command (List<String> command)
  Sets this process builder's operating system program and arguments.
public ProcessBuilder command (String command)
  Sets this process builder's operating system program and arguments.
public File directory ()
  Returns this process builder's working directory.
public ProcessBuilder directory (File directory)
  Sets this process builder's working directory.
public Map<String, String> environment ()
  Returns a string map view of this process builder's environment.
pack-private ProcessBuilder environment (String envp)
public boolean redirectErrorStream ()
  Tells whether this process builder merges standard error and standard output.
public ProcessBuilder redirectErrorStream (boolean redirectErrorStream)
  Sets this process builder's redirectErrorStream property.
public Process start () throws IOException
  Starts a new process using the attributes of this process builder.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar