类 HeadingProviderExample
java.lang.Object
net.sf.marineapi.example.HeadingProviderExample
- 所有已实现的接口:
EventListener,HeadingListener,ProviderListener<HeadingEvent>
Demonstrates the usage of HeadingProvider.
- 作者:
- Kimmo Tuukkanen
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidMain method takes one command-line argument, the name of the file to read.voidInvoked when provider has new data available.
-
构造器详细资料
-
HeadingProviderExample
Creates a new instance of FileExample- 参数:
file- File from which to read Checksum data- 抛出:
IOException
-
-
方法详细资料
-
providerUpdate
从接口复制的说明:ProviderListenerInvoked when provider has new data available.- 指定者:
providerUpdate在接口中HeadingListener- 指定者:
providerUpdate在接口中ProviderListener<HeadingEvent>- 参数:
evt- ProviderEvent object
-
main
Main method takes one command-line argument, the name of the file to read.- 参数:
args- Command-line arguments
-