|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
de.infinityloop.util.inout.StreamMunger
public class StreamMunger
This class munges a given stream (empties it). Options can be set to redirect the contents to some other destination.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
static int |
kDiscard
|
static int |
kLogDebug
|
static int |
kLogError
|
static int |
kLogInfo
|
static int |
kLogMessage
|
static int |
kLogWarn
|
static int |
kOutputStream
|
static int |
kStringBuffer
|
static int |
kSysErr
|
static int |
kSysOut
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
StreamMunger(java.io.InputStream is,
java.io.OutputStream dest,
LogSource attachToMe)
Reads the stream and writes the contents into dest |
|
StreamMunger(java.io.InputStream is,
java.lang.StringBuffer dest,
LogSource attachToMe)
Reads the stream and writes the contents into dest |
|
StreamMunger(java.io.InputStream is,
java.lang.String type,
int action,
LogSource attachToMe)
|
|
| Method Summary | |
|---|---|
void |
run()
The actual worker function for this thread |
| 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 |
|---|
public static final int kDiscard
public static final int kSysOut
public static final int kSysErr
public static final int kLogInfo
public static final int kLogDebug
public static final int kLogError
public static final int kLogWarn
public static final int kLogMessage
public static final int kStringBuffer
public static final int kOutputStream
| Constructor Detail |
|---|
public StreamMunger(java.io.InputStream is,
java.lang.String type,
int action,
LogSource attachToMe)
public StreamMunger(java.io.InputStream is,
java.lang.StringBuffer dest,
LogSource attachToMe)
is - the input stream to readdest - the destination StringBuffer
public StreamMunger(java.io.InputStream is,
java.io.OutputStream dest,
LogSource attachToMe)
is - the input stream to readdest - the destination StringBuffer| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.lang.ThreadThread.run()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||