public class APRSStack extends java.lang.Object implements AX25Parser
Message| Modifier and Type | Field and Description |
|---|---|
static boolean |
debug
Flag to enable extra debugging stack traces for common cases that don't normally need stack traces.
|
| Modifier and Type | Method and Description |
|---|---|
static APRSStack |
getInstance()
Get the singleton instance of APRSStack.
|
AX25Message |
parse(byte[] body,
AX25Callsign src,
AX25Callsign dest,
long rcvTimestamp,
Connector connector)
Parse a message to the appropriate object class.
|
static Message |
parse(byte[] body,
int offset,
AX25Callsign src,
AX25Callsign dest,
java.lang.String tp,
long rcvTimestamp,
Connector connector)
Analyze the contents of an AX.25 packet that appears to be identified as an APRS packet.
|
public static boolean debug
public static APRSStack getInstance()
public static Message parse(byte[] body, int offset, AX25Callsign src, AX25Callsign dest, java.lang.String tp, long rcvTimestamp, Connector connector)
body - byte array containing the packet bodyoffset - zero-based starting index in the body array where the message is supposed to startsrc - AX25Callsign of transmitting stationdest - AX25Callsign of destination station (or tocall)tp - String of third party prefix, or null if no third-party prefix detected yetrcvTimestamp - time (in milliseconds since Jan 1 1970 UTC) that message was receivedconnector - Connector that received the packetpublic AX25Message parse(byte[] body, AX25Callsign src, AX25Callsign dest, long rcvTimestamp, Connector connector)
parse in interface AX25Parserbody - byte array containing the message to be parsedsrc - AX25Callsign of the sending stationdest - AX25Callsign of the destination (probably an APRS alias)rcvTimestamp - the time in Java/Unix milliseconds since midnight Jan 1, 1970 UTC when this
message was actually received (as opposed to any timestamp that might be
embedded in the message body)connector - Connector over which the message was received (null if from a file)