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:
java.lang.Runnable
Enclosing class:
ExecuteCommand

public static class ExecuteCommand.StreamReader
extends java.lang.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
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 java.lang.StringBuffer buffer
          the string buffer to buffer data into
 java.io.BufferedReader reader
          the stream to read from
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ExecuteCommand.StreamReader(java.io.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 java.io.BufferedReader reader
the stream to read from


buffer

public java.lang.StringBuffer buffer
the string buffer to buffer data into

Constructor Detail

ExecuteCommand.StreamReader

public ExecuteCommand.StreamReader(java.io.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 java.lang.Runnable
Overrides:
run in class java.lang.Thread