de.buelowssiege.mail.pgp_mime.util
Class StreamPrinterThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--de.buelowssiege.mail.pgp_mime.util.StreamPrinterThread
All Implemented Interfaces:
java.lang.Runnable

public class StreamPrinterThread
extends java.lang.Thread

This thread prints everything to a logger that comes out of the input stream. Used to reproduce output from a process.

Version:
$Id: StreamPrinterThread.html,v 1.1 2004/02/11 12:51:34 mschwerin Exp $
Author:
Maximilian Schwerin

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
StreamPrinterThread(java.io.InputStream inputStream)
           
 
Method Summary
 java.lang.String getBuffer()
          Returns everything read from the input stream as a string.
 void run()
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StreamPrinterThread

public StreamPrinterThread(java.io.InputStream inputStream)
Method Detail

run

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

getBuffer

public java.lang.String getBuffer()
Returns everything read from the input stream as a string.