类 AbstractAISMessageListener<T extends AISMessage>

java.lang.Object
net.sf.marineapi.nmea.event.AbstractSentenceListener<AISSentence>
net.sf.marineapi.ais.event.AbstractAISMessageListener<T>
类型参数:
T - AIS message type to be listened.
所有已实现的接口:
EventListener, SentenceListener
直接已知子类:
AISListenerExample

public abstract class AbstractAISMessageListener<T extends AISMessage> extends AbstractSentenceListener<AISSentence>

Abstract listener for AIS messages. Extend this class to create a listener for a specific AIS message type and register it in a SentenceReader.

To listen to all incoming AIS sentences, extend the AbstractSentenceListener using AISSentence as type. However, in this case you also need to implement the message concatenation to parse messages being delivered over multiple sentences.

This class is based on AbstractSentenceListener and thus it has the same recommendations and limitations regarding the usage of generics and inheritance.

作者:
Kimmo Tuukkanen
另请参阅: