public abstract class MessagesParser extends Object
Constructor and Description |
---|
MessagesParser(List<Integer> messages)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract MessageType |
getMessageType(String messageNumber)
Get the message type corresponding to the message number.
|
ParsedMessage |
parse(EncodedMessage message,
boolean ignoreUnknownMessageTypes)
Parse one message.
|
protected abstract String |
parseMessageNumber(EncodedMessage message)
Parse the message number.
|
public ParsedMessage parse(EncodedMessage message, boolean ignoreUnknownMessageTypes)
message
- encoded message to parseignoreUnknownMessageTypes
- if true, unknown messages types are silently ignoredignoreUnknownMessageTypes
is trueprotected abstract String parseMessageNumber(EncodedMessage message)
message
- encoded message to parseprotected abstract MessageType getMessageType(String messageNumber)
messageNumber
- String reprensentation of the message numberCopyright © 2002-2022 CS GROUP. All rights reserved.