wonderly.jeaprs.aprs
Class APRSStatusEvent

java.lang.Object
  |
  +--wonderly.jeaprs.aprs.EventObject
        |
        +--wonderly.jeaprs.aprs.APRSStatusEvent

public class APRSStatusEvent
extends EventObject

This class is used to convey events related to APRSEventListener objects. If an APRSEventListener needs to know when the APRS Stream has reached the end of input, it can register itself as an APRSStatusListener, and get APRSStatusEvent objects telling it when the stream is closed, or if packet parsing errors occur.

Version:
1.0
Author:
Gregg Wonderly - The information contained in this document is Copyright 2001-2003, Gregg Wonderly, all rights reserved.
See Also:
APRSStatusListener, com.c2_tech.aprs.packet.APRSEventListener, com.c2_tech.aprs.packet.APRSEventGenerator

Constructor Summary
APRSStatusEvent(java.lang.Object source)
           
APRSStatusEvent(java.lang.Object source, byte[] packet, java.lang.Throwable ex)
           
 
Method Summary
 byte[] getPacketData()
          Returns the packet data associated with an event that indicates something to do with a specific packet.
 java.lang.Throwable getThrowable()
          Gets the Throwable object that details the error that occured in processing the packet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

APRSStatusEvent

public APRSStatusEvent(java.lang.Object source)
Parameters:
source - the source of the event (the APRSStreamHandler usually)

APRSStatusEvent

public APRSStatusEvent(java.lang.Object source,
                       byte[] packet,
                       java.lang.Throwable ex)
Parameters:
source - the source of the event (the APRSStreamHandler usually)
packet - the packet data that failed parsing.
Method Detail

getPacketData

public byte[] getPacketData()
Returns the packet data associated with an event that indicates something to do with a specific packet. A parsing error or otherwise...


getThrowable

public java.lang.Throwable getThrowable()
Gets the Throwable object that details the error that occured in processing the packet.