Interface AX25Parser

All Known Subinterfaces:
AX25ParserWithDistributor
All Known Implementing Classes:
APRSStack, OpenTracParser
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface AX25Parser
Interface declaring an API for parsing an AX25Frame into a particular protocol (PID)'s decoded message.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Method Details

    • parse

      AX25Message parse(byte[] body, AX25Callsign src, AX25Callsign dest, AX25Callsign[] digipeaters, long rcvTimestamp, Connector connector)
      Parse a message to the appropriate object class.
      Parameters:
      body - byte array containing the message to be parsed
      src - AX25Callsign of the sending station
      dest - AX25Callsign of the destination (probably an APRS alias)
      digipeaters - array of AX25Callsigns for RF digipeaters, or null if none
      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)
      Returns:
      the decoded Message (if not decipherable, a DefaultMessage is returned)