类 SentenceListenerExamples.MultiSentenceListener
java.lang.Object
net.sf.marineapi.example.SentenceListenerExamples.MultiSentenceListener
- 所有已实现的接口:
EventListener,SentenceListener
public class SentenceListenerExamples.MultiSentenceListener
extends Object
implements SentenceListener
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidCalled afterSentenceReaderhas timed out for receiving new data.voidCalled beforeSentenceReaderstarts dispatching events.voidCalled afterSentenceReaderhas permanently stopped reading, either due to an error or by calling theSentenceReader.stop()method.voidsentenceRead(SentenceEvent event) Called bySentenceReaderwhen a single NMEA 0183 sentence has been read and parsed from the data stream.
-
构造器详细资料
-
MultiSentenceListener
public MultiSentenceListener()
-
-
方法详细资料
-
readingPaused
public void readingPaused()从接口复制的说明:SentenceListenerCalled after
SentenceReaderhas timed out for receiving new data. Indicates that the reader is still active and waiting for new data which isn't currently available for some reason. For example, the device may have stopped broadcasting or the end of a file has been reached.Default time for timeout is defined by
SentenceReader.DEFAULT_TIMEOUT. This value can be overridden withSentenceReader.setPauseTimeout(int).- 指定者:
readingPaused在接口中SentenceListener
-
readingStarted
public void readingStarted()从接口复制的说明:SentenceListenerCalled beforeSentenceReaderstarts dispatching events. Indicates that the reader is active and receiving data. Also, this notification occurs when the dispatching continues again afterSentenceListener.readingPaused()has occurred.- 指定者:
readingStarted在接口中SentenceListener
-
readingStopped
public void readingStopped()从接口复制的说明:SentenceListenerCalled afterSentenceReaderhas permanently stopped reading, either due to an error or by calling theSentenceReader.stop()method.- 指定者:
readingStopped在接口中SentenceListener
-
sentenceRead
从接口复制的说明:SentenceListenerCalled bySentenceReaderwhen a single NMEA 0183 sentence has been read and parsed from the data stream. By default, only supported sentences defined inSentenceIdare dispatched.- 指定者:
sentenceRead在接口中SentenceListener- 参数:
event- SentenceEvent containing the data.
-