public interface SentenceListener extends EventListener
SentenceReader
,
SentenceEvent
,
AbstractSentenceListener
Modifier and Type | Method and Description |
---|---|
void |
readingPaused()
Called after
SentenceReader has timed
out for receiving new data. |
void |
readingStarted()
Called before
SentenceReader starts
dispatching events. |
void |
readingStopped()
Called after
SentenceReader has
permanently stopped reading, either due to an error or by calling the
SentenceReader.stop() method. |
void |
sentenceRead(SentenceEvent event)
Called by
SentenceReader when a single
NMEA 0183 sentence has been read and parsed from the data stream. |
void readingPaused()
Called after SentenceReader
has 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 with
SentenceReader.setPauseTimeout(int)
.
void readingStarted()
SentenceReader
starts
dispatching events. Indicates that the reader is active and receiving
data. Also, this notification occurs when the dispatching continues
again after readingPaused()
has occurred.void readingStopped()
SentenceReader
has
permanently stopped reading, either due to an error or by calling the
SentenceReader.stop()
method.void sentenceRead(SentenceEvent event)
SentenceReader
when a single
NMEA 0183 sentence has been read and parsed from the data stream. By
default, only supported sentences defined in
SentenceId
are dispatched.event
- SentenceEvent containing the data.Copyright (C) 2010-2015 Java Marine API authors. All Rights Reserved.