public class ThreadedStreamGobbler extends Thread
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ThreadedStreamGobbler(InputStream is,
int logLevel) |
ThreadedStreamGobbler(InputStream inputStream,
List<String> output) |
ThreadedStreamGobbler(InputStream inputStream,
OutputStream output) |
ThreadedStreamGobbler(String prefix,
InputStream is,
int logLevel) |
Modifier and Type | Method and Description |
---|---|
void |
run() |
activeCount, checkAccess, clone, 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
public ThreadedStreamGobbler(String prefix, InputStream is, int logLevel)
public ThreadedStreamGobbler(InputStream is, int logLevel)
public ThreadedStreamGobbler(InputStream inputStream, List<String> output)
inputStream
- InputStream to readoutput
- List to store output instead of logging it.public ThreadedStreamGobbler(InputStream inputStream, OutputStream output)
inputStream
- InputStream to readoutput
- OutputStream where to write.Copyright © 2016 Nuxeo SA. All rights reserved.