com.rapplogic.xbee.api
Class InputStreamThread
java.lang.Object
com.rapplogic.xbee.api.InputStreamThread
- All Implemented Interfaces:
- java.lang.Runnable
public class InputStreamThread
- extends java.lang.Object
- implements java.lang.Runnable
Reads data from the input stream and hands off to PacketParser for packet parsing.
Notifies XBee class when a new packet is parsed
- Author:
- andrew
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputStreamThread
public InputStreamThread(XBeeConnection connection,
XBeeConfiguration conf)
getXBeeConnection
public XBeeConnection getXBeeConnection()
getPacketListenerList
public java.util.List<PacketListener> getPacketListenerList()
getResponseQueue
public java.util.concurrent.BlockingQueue<XBeeResponse> getResponseQueue()
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
setDone
public void setDone(boolean done)
interrupt
public void interrupt()