com.lyrisoft.chat.server.remote
Class ReaderThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.lyrisoft.chat.server.remote.ReaderThread
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
FlashReaderThread

public class ReaderThread
extends java.lang.Thread

Constantly reads from the BufferedReader. Notifies the ChatServerLocal via the incomingMessage() method


Field Summary
protected  ConnectionHandler _connectionHandler
           
protected  IConnectionListener _connectionListener
           
protected  java.io.BufferedReader _in
           
protected  java.io.InputStream _inputStream
           
protected  boolean _keepGoing
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ReaderThread(ConnectionHandler handler, IConnectionListener listener, java.io.InputStream in)
           
 
Method Summary
 void bsdHackRun()
           
 void normalRun()
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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
 

Field Detail

_connectionListener

protected IConnectionListener _connectionListener

_in

protected java.io.BufferedReader _in

_inputStream

protected java.io.InputStream _inputStream

_keepGoing

protected boolean _keepGoing

_connectionHandler

protected ConnectionHandler _connectionHandler
Constructor Detail

ReaderThread

public ReaderThread(ConnectionHandler handler,
                    IConnectionListener listener,
                    java.io.InputStream in)
Method Detail

normalRun

public void normalRun()

bsdHackRun

public void bsdHackRun()

run

public void run()
Overrides:
run in class java.lang.Thread


Copyright © 2000-2002 Taso Lyristis