Class BfsImporter.ProgressEventHandler
java.lang.Object
net.sf.basedb.util.importer.spotdata.BfsImporter.ProgressEventHandler
- All Implemented Interfaces:
EventHandler
- Enclosing class:
- BfsImporter
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleEvent
(EventType eventType, Object eventData, BfsParser parser) The method is called by the parser when it has found something interesting in a BFS file.
-
Field Details
-
progress
-
totalBytes
private long totalBytes -
nextReport
private long nextReport -
reportInterval
private long reportInterval
-
-
Constructor Details
-
ProgressEventHandler
ProgressEventHandler(ProgressReporter progress, long totalBytes)
-
-
Method Details
-
handleEvent
Description copied from interface:EventHandler
The method is called by the parser when it has found something interesting in a BFS file. See the respective parser documentation for documentation about the events that it generates. There is usually some kind of information associated with the event. This information is sent to the event handler as an object. The parser should document what kind of information it sends so that event handler implementation can react and use the information.It is recommended that event handlers ignore event types they don't know about.
- Specified by:
handleEvent
in interfaceEventHandler
- Parameters:
eventType
- The type of event. See the parser documentation for more information about the event types it generateseventData
- The data that is associated with the eventparser
- The parser that is resposible for parsing the file
-