Home | History | Annotate | Download | only in lang

Lines Matching refs:Process

24  * Represents an external process. Enables writing to, reading from, destroying,
25 * and waiting for the external process, as well as querying its exit value. Use
28 * <p>The child process writes its output to two streams, {@code out} and
29 * {@code err}. These streams should be read by the parent process using {@link
31 * streams are not read, the target process may block while it awaits buffer
37 * to avoid blocking the target process.
39 * <p>Running processes hold resources. When a process is no longer used, the
40 * process should be closed by calling {@link #destroy}. This will kill the
41 * process and release the resources that it holds.
45 * Process process = new ProcessBuilder()
50 * InputStream in = process.getInputStream();
51 * OutputStream out = process.getOutputStream();
56 * process.destroy();
60 public abstract class Process {
63 * Terminates this process and closes any associated streams.
68 * Returns the exit value of the native process represented by this object.
69 * It is available only when the native process has terminated.
71 * @return the exit value of this process.
73 * if this process has not terminated.
79 * <em>(stderr)</em> of the native process represented by this object.
82 * the native process.
88 * <em>(stdout)</em> of the native process represented by this object.
91 * the native process.
97 * <em>(stdin)</em> of the native process represented by this object.
100 * the native process.
105 * Causes the calling thread to wait for the native process associated with
108 * @return the exit value of the native process being waited on.