- java.lang.Object
-
- java.lang.Thread
-
- util.io.StreamReaderThread
-
- All Implemented Interfaces:
java.lang.Runnable
public class StreamReaderThread extends java.lang.Thread
A class that reads from InputStreams in a Thread.- Author:
- René Mach
-
-
Constructor Summary
Constructors Constructor Description StreamReaderThread(java.io.InputStream stream, boolean save)
StreamReaderThread(java.io.InputStream stream, boolean save, java.lang.String encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getOutputString()
void
run()
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
StreamReaderThread
public StreamReaderThread(java.io.InputStream stream, boolean save)
- Parameters:
stream
- The InputStream to read from.save
- Save the output of the stream.
-
StreamReaderThread
public StreamReaderThread(java.io.InputStream stream, boolean save, java.lang.String encoding)
- Parameters:
stream
- The InputStream to read from.save
- Save the output of the stream.encoding
- Encoding of the Stream
-
-