static class BfsImporter.ProgressEventHandler extends Object implements EventHandler
Modifier and Type | Field and Description |
---|---|
private long |
nextReport |
private ProgressReporter |
progress |
private long |
reportInterval |
private long |
totalBytes |
Constructor and Description |
---|
BfsImporter.ProgressEventHandler(ProgressReporter progress,
long totalBytes) |
Modifier and Type | Method and Description |
---|---|
void |
handleEvent(EventType eventType,
Object eventData,
BfsParser parser)
The method is called by the parser when it has found something
interesting in a BFS file.
|
private ProgressReporter progress
private long totalBytes
private long nextReport
private long reportInterval
BfsImporter.ProgressEventHandler(ProgressReporter progress, long totalBytes)
public void handleEvent(EventType eventType, Object eventData, BfsParser parser)
EventHandler
It is recommended that event handlers ignore event types they don't know about.
handleEvent
in interface EventHandler
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