|
||||||||||
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 |
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.lang.StringBuffer dest)
Reads the stream and writes the contents into dest |
|
StreamMunger(java.io.InputStream is,
java.lang.String type,
int action)
|
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 |
---|
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
Constructor Detail |
---|
public StreamMunger(java.io.InputStream is, java.lang.String type, int action)
public StreamMunger(java.io.InputStream is, java.lang.StringBuffer dest)
is
- the input stream to readdest
- the destination StringBufferMethod Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |