|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--wonderly.jeaprs.aprs.APRSStreamHandler
This class contains methods for processing a java.io.InputStream of APRS packets and separate APRSPacket objects. It allows listeners to be added that will be sent events associated with the many types of APRS events that the protocol supports.
Constructor Summary | |
APRSStreamHandler()
|
Method Summary | |
void |
addAPRSEventListener(wonderly.jeaprs.aprs.packet.APRSEventListener lis)
Adds the passed APRSEventListener to the list of listeners receiving events as they are parsed and APRSData objects are created. |
void |
addAPRSStatusListener(wonderly.jeaprs.aprs.APRSStatusListener lis)
Adds an APRSStatusListener to receive notification of events pertaining to the processing of this stream. |
void |
addStreamListener(java.io.OutputStream lis)
Adds a stream listener that will receive the raw data as it is processed by this class. |
java.util.Vector |
getAPRSEventListeners()
Returns all APRSEventListeners |
java.util.Vector |
getAPRSStatusListeners()
Returns all APRSStatusListeners |
boolean |
getDebugging()
|
java.lang.String |
getModuleId()
returns the name used to identify this TNC to the user |
wonderly.jeaprs.aprs.packet.APRSData |
processAPRSPacket(wonderly.jeaprs.aprs.packet.APRSPacket pkt)
|
void |
processTNCStream(wonderly.jeaprs.TNC rd)
|
void |
removeAPRSEventListener(wonderly.jeaprs.aprs.packet.APRSEventListener lis)
Removes the passed APRSEventListener so that it will no longer receives events. |
void |
removeAPRSStatusListener(wonderly.jeaprs.aprs.APRSStatusListener lis)
Removes the passed APRSStatusListener |
void |
removeStreamListener(java.io.OutputStream lis)
Removes the passed stream listener |
protected void |
sendBadPacket(byte[] data,
java.lang.Exception ex)
Sends EOF to all APRSStatusListeners |
protected void |
sendEOFStatus()
Sends EOF to all APRSStatusListeners |
void |
setDebugging(boolean how)
|
void |
setModuleId(java.lang.String name)
Sets the name used for identifying this TNC to the user |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public APRSStreamHandler()
Method Detail |
public void setModuleId(java.lang.String name)
setModuleId
in interface IOModule
public java.lang.String getModuleId()
getModuleId
in interface IOModule
public void setDebugging(boolean how)
public boolean getDebugging()
public java.lang.String toString()
toString
in class java.lang.Object
public void addAPRSEventListener(wonderly.jeaprs.aprs.packet.APRSEventListener lis)
addAPRSEventListener
in interface APRSEventGenerator
public void removeAPRSEventListener(wonderly.jeaprs.aprs.packet.APRSEventListener lis)
removeAPRSEventListener
in interface APRSEventGenerator
public void addStreamListener(java.io.OutputStream lis)
addStreamListener
in interface APRSEventGenerator
public void removeStreamListener(java.io.OutputStream lis)
removeStreamListener
in interface APRSEventGenerator
public void addAPRSStatusListener(wonderly.jeaprs.aprs.APRSStatusListener lis)
addAPRSStatusListener
in interface APRSEventGenerator
public void removeAPRSStatusListener(wonderly.jeaprs.aprs.APRSStatusListener lis)
removeAPRSStatusListener
in interface APRSEventGenerator
public java.util.Vector getAPRSEventListeners()
getAPRSEventListeners
in interface APRSEventGenerator
public java.util.Vector getAPRSStatusListeners()
getAPRSStatusListeners
in interface APRSEventGenerator
protected void sendEOFStatus()
protected void sendBadPacket(byte[] data, java.lang.Exception ex)
public void processTNCStream(wonderly.jeaprs.TNC rd) throws java.io.IOException
processTNCStream
in interface APRSEventGenerator
java.io.IOException
public wonderly.jeaprs.aprs.packet.APRSData processAPRSPacket(wonderly.jeaprs.aprs.packet.APRSPacket pkt)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |