com.ibm.di.function
Class ExecuteCommand.StreamReader

java.lang.Object
  extended by java.lang.Thread
      extended by com.ibm.di.function.ExecuteCommand.StreamReader
All Implemented Interfaces:
Runnable
Enclosing class:
ExecuteCommand

public static class ExecuteCommand.StreamReader
extends Thread

Local thread that reads an input stream and buffers the stream in a string buffer.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 StringBuffer buffer
          the string buffer to buffer data into
 BufferedReader reader
          the stream to read from
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ExecuteCommand.StreamReader(InputStream is)
          Constructor for the StreamReader object
 
Method Summary
 void run()
          Main processing method for the StreamReader object
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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
 

Field Detail

reader

public BufferedReader reader
the stream to read from


buffer

public StringBuffer buffer
the string buffer to buffer data into

Constructor Detail

ExecuteCommand.StreamReader

public ExecuteCommand.StreamReader(InputStream is)
Constructor for the StreamReader object

Parameters:
is - the reader to read from
Method Detail

run

public void run()
Main processing method for the StreamReader object

Specified by:
run in interface Runnable
Overrides:
run in class Thread