2.8.2: 2008-09-18

net.sf.basedb.plugins
Class Base1PluginExecuter.StreamHandler

java.lang.Object
  extended by java.lang.Thread
      extended by net.sf.basedb.plugins.Base1PluginExecuter.StreamHandler
All Implemented Interfaces:
Runnable
Enclosing class:
Base1PluginExecuter

private class Base1PluginExecuter.StreamHandler
extends Thread

This thread read everything from one input stream ant writes everything to an output stream.

Author:
Johan Enell

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
private  InputStream is
          The input stream to read from;
private  OutputStream os
          The output stream to write to.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Base1PluginExecuter.StreamHandler(InputStream is, OutputStream redirect)
          Creates a steam handler connected to the specific streams.
 
Method Summary
 void run()
           
 
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

is

private InputStream is
The input stream to read from;


os

private OutputStream os
The output stream to write to.

Constructor Detail

Base1PluginExecuter.StreamHandler

Base1PluginExecuter.StreamHandler(InputStream is,
                                  OutputStream redirect)
Creates a steam handler connected to the specific streams.

Parameters:
is - The stream to read from.
redirect - The stream to write to.
Method Detail

run

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

2.8.2: 2008-09-18