Web-4-All v3.00 Plug-in API Specification

ca.utoronto.atrc.web4all.configuration
Class ReadProcessIStreams

java.lang.Object
  extended byca.utoronto.atrc.web4all.configuration.ReadProcessIStreams

public class ReadProcessIStreams
extends java.lang.Object

Read the "stdout" and "stderr" streams of a Process object to insure that they are cleared as they fill up.


Constructor Summary
ReadProcessIStreams()
           
 
Method Summary
 void readStreams(java.lang.Process inProcess)
          Read the given Process instance's "stdout" and "stderr" streams until they are empty, and throw away their contents.
 void readStreams(java.lang.Process inProcess, boolean logFlag)
          Read the given Process instance's "stdout" and "stderr" streams until they are empty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadProcessIStreams

public ReadProcessIStreams()
Method Detail

readStreams

public void readStreams(java.lang.Process inProcess)
Read the given Process instance's "stdout" and "stderr" streams until they are empty, and throw away their contents.

Parameters:
inProcess - The Process instance whose streams are to be read.
See Also:
readStreams(Process,boolean)

readStreams

public void readStreams(java.lang.Process inProcess,
                        boolean logFlag)
Read the given Process instance's "stdout" and "stderr" streams until they are empty. Optionally, discard the stream contents, or record it to a log.

Parameters:
inProcess - The Process instance whose streams are to be read.
logFlag - If true log the streams as they are read into the ConfigManager's log file. Otherwise, the contents of the streams are lost.
See Also:
readStreams(Process)

Web-4-All v3.00 Plug-in API Specification