com.realtime.xmpp
Class XmppSession.ParserThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.realtime.xmpp.XmppSession.ParserThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
XmppSession

protected class XmppSession.ParserThread
extends java.lang.Thread

Daemon thread to parse incoming packets through the SaxEventManager. This thread will automatically die when the input stream is closed.


Field Summary
protected  boolean m_bDone
          Signal that the thread is done working.
protected  XmlStream m_myConnection
          The XMPP connection we're processing.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected XmppSession.ParserThread(XmlStream conn)
          Protect the constructor.
 
Method Summary
 boolean isDone()
          Determine if this thread is done working.
 void run()
          Start parsing the XMPP input stream.
 
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

m_myConnection

protected XmlStream m_myConnection
The XMPP connection we're processing.


m_bDone

protected boolean m_bDone
Signal that the thread is done working.

Constructor Detail

XmppSession.ParserThread

protected XmppSession.ParserThread(XmlStream conn)
Protect the constructor.

Method Detail

run

public void run()
Start parsing the XMPP input stream.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

isDone

public boolean isDone()
Determine if this thread is done working.

Returns:
True if the thread has completed.


Copyright © 2002,2003 Real Time Entertainment Group, LLC. All Rights Reserved.