jdk/src/java.base/share/classes/java/lang/ProcessBuilder.java
changeset 44844 b2b4d98404ba
parent 44263 7a9297d467e7
child 47004 b7e72fc752c9
equal deleted inserted replaced
44843:c1b0ca015127 44844:b2b4d98404ba
    69  *
    69  *
    70  * <li>a <i>working directory</i>.  The default value is the current
    70  * <li>a <i>working directory</i>.  The default value is the current
    71  * working directory of the current process, usually the directory
    71  * working directory of the current process, usually the directory
    72  * named by the system property {@code user.dir}.
    72  * named by the system property {@code user.dir}.
    73  *
    73  *
    74  * <li><a name="redirect-input">a source of <i>standard input</i></a>.
    74  * <li><a id="redirect-input">a source of <i>standard input</i></a>.
    75  * By default, the subprocess reads input from a pipe.  Java code
    75  * By default, the subprocess reads input from a pipe.  Java code
    76  * can access this pipe via the output stream returned by
    76  * can access this pipe via the output stream returned by
    77  * {@link Process#getOutputStream()}.  However, standard input may
    77  * {@link Process#getOutputStream()}.  However, standard input may
    78  * be redirected to another source using
    78  * be redirected to another source using
    79  * {@link #redirectInput(Redirect) redirectInput}.
    79  * {@link #redirectInput(Redirect) redirectInput}.
    84  * <li>the {@link OutputStream#write(int) write} methods always
    84  * <li>the {@link OutputStream#write(int) write} methods always
    85  * throw {@code IOException}
    85  * throw {@code IOException}
    86  * <li>the {@link OutputStream#close() close} method does nothing
    86  * <li>the {@link OutputStream#close() close} method does nothing
    87  * </ul>
    87  * </ul>
    88  *
    88  *
    89  * <li><a name="redirect-output">a destination for <i>standard output</i>
    89  * <li><a id="redirect-output">a destination for <i>standard output</i>
    90  * and <i>standard error</i></a>.  By default, the subprocess writes standard
    90  * and <i>standard error</i></a>.  By default, the subprocess writes standard
    91  * output and standard error to pipes.  Java code can access these pipes
    91  * output and standard error to pipes.  Java code can access these pipes
    92  * via the input streams returned by {@link Process#getOutputStream()} and
    92  * via the input streams returned by {@link Process#getOutputStream()} and
    93  * {@link Process#getErrorStream()}.  However, standard output and
    93  * {@link Process#getErrorStream()}.  However, standard output and
    94  * standard error may be redirected to other destinations using
    94  * standard error may be redirected to other destinations using