Class AisMessageParser


  • public class AisMessageParser
    extends java.lang.Object
    Parses AIS messages (as they are taken from the 5th column in the NMEA message).
    Author:
    dxm
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AisMessage parse​(java.lang.String message, int padBits)
      Returns an AisMessage from the string representation of the message as per 1371-4 IMO specification (as per the appropriate column in the NMEA message).
      AisMessage parse​(java.lang.String message, java.lang.String source, int padBits)
      Returns an AisMessage from the string representation of the message as per 1371-4 IMO specification (as per the appropriate column in the NMEA message).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AisMessageParser

        public AisMessageParser()
        Constructor.
      • AisMessageParser

        public AisMessageParser​(AisExtractorFactory factory)
        Constructor.
        Parameters:
        factory -
    • Method Detail

      • parse

        public AisMessage parse​(java.lang.String message,
                                int padBits)
        Returns an AisMessage from the string representation of the message as per 1371-4 IMO specification (as per the appropriate column in the NMEA message). Sets source to null.
        Parameters:
        message -
        Returns:
      • parse

        public AisMessage parse​(java.lang.String message,
                                java.lang.String source,
                                int padBits)
        Returns an AisMessage from the string representation of the message as per 1371-4 IMO specification (as per the appropriate column in the NMEA message).
        Parameters:
        message -
        source -
        Returns: