util.io
Class StreamReaderThread
java.lang.Object
java.lang.Thread
util.io.StreamReaderThread
- All Implemented Interfaces:
- Runnable
public class StreamReaderThread
- extends Thread
A class that reads from InputStreams in a Thread.
- Author:
- René Mach
| 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 |
StreamReaderThread
public StreamReaderThread(InputStream stream,
boolean save)
- Parameters:
stream - The InputStream to read from.save - Save the output of the stream.
StreamReaderThread
public StreamReaderThread(InputStream stream,
boolean save,
String encoding)
- Parameters:
stream - The InputStream to read from.save - Save the output of the stream.encoding - Encoding of the Stream
run
public void run()
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
getOutput
public String getOutput()
- Returns:
- The output of the stream.
TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)