org.bee.util
Class StreamCatcher

java.lang.Object
  extended by java.lang.Thread
      extended by org.bee.util.StreamCatcher
All Implemented Interfaces:
java.lang.Runnable

public class StreamCatcher
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static char CR
           
static java.lang.String CRLF
           
static java.lang.String EMPTY
           
static char EQUAL
           
protected  java.io.InputStream is
           
static char NL
           
protected  java.io.PrintStream ps
           
protected  java.lang.StringBuffer sb
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
StreamCatcher(java.io.InputStream is)
           
StreamCatcher(java.io.InputStream is, java.io.PrintStream ps)
           
 
Method Summary
 java.util.ResourceBundle getAsResourceBundle()
           
 java.lang.StringBuffer getContent()
           
 boolean isEmpty()
           
 void run()
           
 java.util.Properties toProperties()
           
 java.lang.String toString()
           
 
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, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY

public static final java.lang.String EMPTY
See Also:
Constant Field Values

CRLF

public static final java.lang.String CRLF
See Also:
Constant Field Values

NL

public static final char NL
See Also:
Constant Field Values

CR

public static final char CR
See Also:
Constant Field Values

EQUAL

public static final char EQUAL
See Also:
Constant Field Values

is

protected java.io.InputStream is

ps

protected java.io.PrintStream ps

sb

protected java.lang.StringBuffer sb
Constructor Detail

StreamCatcher

public StreamCatcher(java.io.InputStream is)

StreamCatcher

public StreamCatcher(java.io.InputStream is,
                     java.io.PrintStream ps)
Method Detail

run

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

getContent

public java.lang.StringBuffer getContent()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Thread

toProperties

public java.util.Properties toProperties()

getAsResourceBundle

public java.util.ResourceBundle getAsResourceBundle()

isEmpty

public boolean isEmpty()