public class DefaultProcessListener extends AProcessListener
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
verbose
Flag whether standard outputs are forwarded to the logger.
|
| Constructor and Description |
|---|
DefaultProcessListener(boolean verbose)
Constructor to initialize the DefaultProcessListener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleError(java.lang.String error)
Handle the output of the error output stream.
|
void |
handleInput(java.lang.String input)
Handle the output of the standard output stream.
|
listenToprotected final boolean verbose
public DefaultProcessListener(boolean verbose)
verbose - Flag whether standard outputs are forwarded to the logger.public void handleError(java.lang.String error)
AProcessListenerhandleError in class AProcessListenererror - The line sent by the process via the error stream.public void handleInput(java.lang.String input)
throws java.io.IOException,
java.lang.InterruptedException
AProcessListenerhandleInput in class AProcessListenerjava.io.IOException - An IOException is thrown if there is an issue reading from the process's stream.java.lang.InterruptedException - An interrupted exception is thrown if the thread/process is interrupted while processing the standard output messages.