InputStreamConsumer
instead.@Deprecated public class StreamGobbler extends Thread
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
StreamGobbler(InputStream is)
Deprecated.
Constructor.
|
StreamGobbler(InputStream is,
String type)
Deprecated.
Constructor.
|
StreamGobbler(InputStream is,
String type,
String encoding)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addStreamListener(IStreamListener... l)
Deprecated.
Adds stream listeners.
|
protected void |
afterStreaming()
Deprecated.
Invoked just after steaming ended, before the thread dies.
|
protected void |
beforeStreaming()
Deprecated.
Invoked just before steaming begins, in a new thread.
|
String |
getEncoding()
Deprecated.
Gets the character encoding.
|
IStreamListener[] |
getStreamListeners()
Deprecated.
Returns stream listeners.
|
String |
getType()
Deprecated.
Gets the stream type.
|
void |
removeStreamListener(IStreamListener listener)
Deprecated.
Removes a stream listener.
|
void |
run()
Deprecated.
|
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 StreamGobbler(InputStream is)
is
- input streampublic StreamGobbler(InputStream is, String type)
is
- input streamtype
- an optional way to identify each line by adding a typepublic StreamGobbler(InputStream is, String type, String encoding)
is
- input streamtype
- an optional way to identify each line by adding a typeencoding
- character encodingpublic void run()
public void addStreamListener(IStreamListener... l)
l
- stream listenerspublic void removeStreamListener(IStreamListener listener)
listener
- stream listenerpublic IStreamListener[] getStreamListeners()
protected void beforeStreaming()
protected void afterStreaming()
public String getType()
public String getEncoding()
Copyright © 2008–2021 Norconex Inc.. All rights reserved.