net.sf.jomic.tools
Interface ConsoleOutputListener
public interface ConsoleOutputListener
Listener to react on lines written by an external Process.
- Author:
- Thomas Aglassinger
- See Also:
ConsoleTools.run(String[],java.io.File,int,ConsoleOutputListener)
Method Summary |
void |
lineWritten(java.lang.Process process,
java.lang.String line,
int streamType)
Called after line was written to the console. |
STREAM_TYPE_OUT
static final int STREAM_TYPE_OUT
- See Also:
- Constant Field Values
STREAM_TYPE_ERR
static final int STREAM_TYPE_ERR
- See Also:
- Constant Field Values
lineWritten
void lineWritten(java.lang.Process process,
java.lang.String line,
int streamType)
- Called after line was written to the console.
- Parameters:
process
- the process that wrote the lineline
- the line written (without newline)streamType
- STREAM_TYPE_OUT or STREAM_TYPE_ERR