TV-Browser 2.7.5 API

util.io
Class StreamReaderThread

java.lang.Object
  extended by java.lang.Thread
      extended by util.io.StreamReaderThread
All Implemented Interfaces:
Runnable

public class StreamReaderThread
extends Thread

A class that reads from InputStreams in a Thread.

Author:
René Mach

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
StreamReaderThread(InputStream stream, boolean save)
           
StreamReaderThread(InputStream stream, boolean save, String encoding)
           
 
Method Summary
 String getOutput()
           
 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
 

Constructor Detail

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
Method Detail

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 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)