org.cdlib.xtf.saxonExt.exec
Class RunElement.InputStuffer

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

private static class RunElement.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
RunElement.InputStuffer(OutputStream stream, byte[] bytes)
           
 
Method Summary
 void run()
           
 
Methods inherited from class 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 Object
clone, 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

RunElement.InputStuffer

public RunElement.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