类 TypedSentenceListenerExample
java.lang.Object
net.sf.marineapi.nmea.event.AbstractSentenceListener<RMCSentence>
net.sf.marineapi.example.TypedSentenceListenerExample
- 所有已实现的接口:
EventListener,SentenceListener
Example application demonstrating the usage of AbstractSentenceListener.
- 作者:
- Kimmo Tuukkanen
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidMain method that takes single file name as argument.voidsentenceRead(RMCSentence sentence) Invoked when sentence of typeTis received.从类继承的方法 net.sf.marineapi.nmea.event.AbstractSentenceListener
readingPaused, readingStarted, readingStopped, sentenceRead
-
构造器详细资料
-
TypedSentenceListenerExample
Creates a new instance.- 参数:
file- File containing NMEA data- 抛出:
IOException
-
-
方法详细资料
-
sentenceRead
从类复制的说明:AbstractSentenceListenerInvoked when sentence of typeTis received.- 指定者:
sentenceRead在类中AbstractSentenceListener<RMCSentence>- 参数:
sentence- Sentence of typeT
-
main
Main method that takes single file name as argument.- 参数:
args- Command-line arguments
-