ca.utoronto.SimpleProcess
Class StreamGobbler

java.lang.Object
  extended byjava.lang.Thread
      extended byca.utoronto.SimpleProcess.StreamGobbler
All Implemented Interfaces:
Runnable

public class StreamGobbler
extends Thread

StreamGobbler: Read and throw away the output of a stream

Author:
David James

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
StreamGobbler(BufferedReader reader)
          Create a new StreamGobbler object for reading the full contents of a stream
 
Method Summary
 void run()
          Read the full contents of the given stream
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StreamGobbler

public StreamGobbler(BufferedReader reader)
Create a new StreamGobbler object for reading the full contents of a stream

Parameters:
reader - The stream we'd like to gobble
Method Detail

run

public void run()
Read the full contents of the given stream



JCVSReport: Easy Progress Reports for CVS/Java Projects. By David James.