org.cdlib.xtf.util
Class ProcessRunner.InputStuffer

Object
  extended by Thread
      extended by ProcessRunner.InputStuffer
All Implemented Interfaces:
Runnable
Enclosing class:
ProcessRunner

private static class ProcessRunner.InputStuffer
extends Thread

Class to stuff input into the process's input stream (an OutputStream to us).


Nested Class Summary
 
Nested classes/interfaces inherited from class Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
private  byte[] bytes
           
 boolean done
           
 Throwable error
           
private  OutputStream outStream
           
 
Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ProcessRunner.InputStuffer(OutputStream stream, byte[] bytes)
           
 
Method Summary
 void run()
           
 
Methods inherited from class Thread
activeCount, checkAccess, clone, 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 Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

outStream

private OutputStream outStream

bytes

private byte[] bytes

error

public Throwable error

done

public boolean done
Constructor Detail

ProcessRunner.InputStuffer

public ProcessRunner.InputStuffer(OutputStream stream,
                                  byte[] bytes)
                           throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread