Package au.gov.amsa.ais
Class AisMessageParser
- java.lang.Object
-
- au.gov.amsa.ais.AisMessageParser
-
public class AisMessageParser extends java.lang.ObjectParses AIS messages (as they are taken from the 5th column in the NMEA message).- Author:
- dxm
-
-
Constructor Summary
Constructors Constructor Description AisMessageParser()Constructor.AisMessageParser(AisExtractorFactory factory)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AisMessageparse(java.lang.String message, int padBits)Returns anAisMessagefrom the string representation of the message as per 1371-4 IMO specification (as per the appropriate column in the NMEA message).AisMessageparse(java.lang.String message, java.lang.String source, int padBits)Returns anAisMessagefrom the string representation of the message as per 1371-4 IMO specification (as per the appropriate column in the NMEA message).
-
-
-
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 anAisMessagefrom 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 anAisMessagefrom 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:
-
-