public class NativeCommandOutputThread extends Thread(Code)
Thread to process output of native commands. This class captures certain
errors and buffers up to a hard-coded number of lines of output. To see all
output turn up log4j debugging to DEBUG level.
author: Dylan Hansen version: 1.0
Creates a new NativeCommandOutputThread object that
that transfers all output to the specified output stream.
Parameters: inStream - input stream for command which is closed by thread whenfinished Parameters: outStream - Output stream to which output is written; closed by thread when finished
Reads from the input stream and outputs to the log. Adds any error message
to the "errors" ArrayList. Up to MAX_OUTPUT_LINES of output are stored.
IOExceptions are logged and result in thread termination.