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)

Field Summary
static int STREAM_TYPE_ERR
           
static int STREAM_TYPE_OUT
           
 
Method Summary
 void lineWritten(java.lang.Process process, java.lang.String line, int streamType)
          Called after line was written to the console.
 

Field Detail

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
Method Detail

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 line
line - the line written (without newline)
streamType - STREAM_TYPE_OUT or STREAM_TYPE_ERR