Package au.gov.amsa.ais
Interface AisExtractorFactory
-
public interface AisExtractorFactoryThis factory createsAisExtractorinstances. It is in use so that we can mock AisExtractors used by the message parsers (for exampleAisPositionA.- Author:
- dxm
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AisExtractorcreate(java.lang.String message, int minLength, int padBits)Returns an extractor for the given message.
-
-
-
Method Detail
-
create
AisExtractor create(java.lang.String message, int minLength, int padBits)
Returns an extractor for the given message. If the decoded message does not have the specified minimum length then an AisParseException is thrown.- Parameters:
message-minLength-padBits-- Returns:
-
-