org.fife.io
Interface ProcessRunnerOutputListener

All Known Implementing Classes:
ToolDockableWindow

public interface ProcessRunnerOutputListener

Listens for lines being written to stdout and stderr by a ProcessRunner.

Version:
1.0
Author:
Robert Futrell

Method Summary
 void outputWritten(java.lang.Process p, java.lang.String output, boolean stdout)
          Called when output was written to stdout or stderr.
 void processCompleted(java.lang.Process p, int rc, java.lang.Throwable e)
          Called when the process completes.
 

Method Detail

outputWritten

void outputWritten(java.lang.Process p,
                   java.lang.String output,
                   boolean stdout)
Called when output was written to stdout or stderr.

Parameters:
p - The process running.
output - The output written.
stdout - If true, this is stdout output. If false, it is stderr.

processCompleted

void processCompleted(java.lang.Process p,
                      int rc,
                      java.lang.Throwable e)
Called when the process completes.

Parameters:
p - The process that completed.
rc - The return code, or Integer.MIN_VALUE if the process terminated abnormally.
e - An exception. This will be null if the process terminated normally, or ended abruptly but somehow without throwing an exception.