public class ProcessReader extends Object
Constructor and Description |
---|
ProcessReader(Process process,
PrintStream printStream,
boolean isError)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getLastException()
Returns the last exception that occurred reading the output (or the error)
of the process.
|
void |
interrupt()
Interrupts the reading of the output (or error) of the process.
|
void |
startReading()
Starts reading the output (or error) of the process.
|
public ProcessReader(Process process, PrintStream printStream, boolean isError)
process
- process whose output/error we want to write to the print
stream.printStream
- the print stream.isError
- whether we must write the error (or the output) must be
written to the stream.public void startReading()
public void interrupt()
public Throwable getLastException()
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.