org.openstreetmap.osmosis.core.report.v0_5
Class EntityReporter

java.lang.Object
  extended by org.openstreetmap.osmosis.core.report.v0_5.EntityReporter
All Implemented Interfaces:
Completable, Releasable, Task, Sink

public class EntityReporter
extends java.lang.Object
implements Sink

An OSM data sink that analyses the data sent to it and provides a simple report.

Author:
Brett Henderson

Constructor Summary
EntityReporter(java.io.File file)
          Creates a new instance.
 
Method Summary
 void complete()
          Flushes all changes to file.
 void process(EntityContainer entityContainer)
          Process the entity.
 void release()
          Cleans up any open file handles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityReporter

public EntityReporter(java.io.File file)
Creates a new instance.

Parameters:
file - The file to write.
Method Detail

process

public void process(EntityContainer entityContainer)
Process the entity.

Specified by:
process in interface Sink
Parameters:
entityContainer - The entity to be processed.

complete

public void complete()
Flushes all changes to file.

Specified by:
complete in interface Completable

release

public void release()
Cleans up any open file handles.

Specified by:
release in interface Releasable