org.openstreetmap.osmosis.core.misc.v0_5
Class NullWriter

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

public class NullWriter
extends java.lang.Object
implements Sink

An OSM data sink that discards all data sent to it. This is primarily intended for benchmarking purposes.

Author:
Brett Henderson

Constructor Summary
NullWriter()
           
 
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

NullWriter

public NullWriter()
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