org.glite.data.common.helpers
Class StreamChomp

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.glite.data.common.helpers.StreamChomp
All Implemented Interfaces:
java.lang.Runnable

public class StreamChomp
extends java.lang.Thread

Handles the results from the Runtine.exec(). See CommandResult for usage.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
StreamChomp(java.io.InputStream stream, java.lang.String name)
           
 
Method Summary
 java.lang.StringBuffer getResult()
           
 java.lang.String getStreamName()
           
 boolean isDone()
           
 void run()
           
 
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

StreamChomp

public StreamChomp(java.io.InputStream stream,
                   java.lang.String name)
Method Detail

run

public void run()

isDone

public boolean isDone()

getResult

public java.lang.StringBuffer getResult()

getStreamName

public java.lang.String getStreamName()