|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
uk.org.iscream.cms.conient.DataReader
The class reads in data from a BufferedReader, it then converts it to an XMLPacket and adds it to its Queue for anything that wants it.
Field Summary | |
private ConnectionHandler |
_ch
A reference to the ConnectionHandler in use |
private Queue |
_dataQueue
The Queue we place data on. |
private BufferedReader |
_inBound
The reader we are reading from. |
private boolean |
_running
The state of this thread. |
String |
REVISION
The current CVS revision of this class |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
DataReader(BufferedReader inBound,
Queue dataQueue,
ConnectionHandler ch)
Constructs a new data reader, giving it its BufferedReader and Queue. |
Method Summary | |
void |
run()
This thread reads data from the BufferedReader. |
void |
shutdown()
This method allows other classes to shutdown this data reader. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, 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 |
public final String REVISION
private BufferedReader _inBound
private Queue _dataQueue
private boolean _running
private ConnectionHandler _ch
Constructor Detail |
public DataReader(BufferedReader inBound, Queue dataQueue, ConnectionHandler ch)
inBound
- the BufferedReader this class should usedataQueue
- the queue new data should be placed onch
- the connection handler in useMethod Detail |
public void run()
public void shutdown()
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |