com.tuneology.avm
Interface Native.LineReader

Enclosing class:
Native

public static interface Native.LineReader

This class gets called for each line of output generated by the program.

Version:
$Id: Native.java,v 1.17 2003/07/10 19:52:12 xnarf Exp $
Author:
Fran Taylor

Method Summary
 boolean processLine(java.lang.String str, boolean e)
          Called by runCommand when a line of output is generated by a process.
 

Method Detail

processLine

public boolean processLine(java.lang.String str,
                           boolean e)
                    throws java.lang.Exception
Called by runCommand when a line of output is generated by a process.
Parameters:
str - The line of output from the program.
e - True if the line is from stderr, false if from stdout.
Returns:
false to stop running the program, true otherwise.
Throws:
java.io.IOException - if an error occurs parsing the input.