de.fh_mannheim.mm.dms.framework
Class StreamCatcher

java.lang.Object
  extended byjava.lang.Thread
      extended byde.fh_mannheim.mm.dms.framework.StreamCatcher
All Implemented Interfaces:
java.lang.Runnable

public class StreamCatcher
extends java.lang.Thread

StreamCatcher writes information of inputstream to outputstream.

Version:
$Revision: 1.2 $
Author:
Jan Löffler, mail@jlsoft.de

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
StreamCatcher(java.io.InputStream is, java.io.OutputStream os)
          Constructor.
StreamCatcher(java.io.InputStream is, java.io.Writer ow)
          Constructor.
 
Method Summary
 void run()
          Runs the thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StreamCatcher

public StreamCatcher(java.io.InputStream is,
                     java.io.OutputStream os)
Constructor.

Parameters:
is - InputStream
os - OutputStream

StreamCatcher

public StreamCatcher(java.io.InputStream is,
                     java.io.Writer ow)
Constructor.

Parameters:
is - InputStream
ow - Writer for output
Method Detail

run

public void run()
Runs the thread.