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

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

public class NullChangeWriter
extends java.lang.Object
implements ChangeSink

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

Author:
Brett Henderson

Constructor Summary
NullChangeWriter()
           
 
Method Summary
 void complete()
          Flushes all changes to file.
 void process(ChangeContainer change)
          Process the change.
 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

NullChangeWriter

public NullChangeWriter()
Method Detail

process

public void process(ChangeContainer change)
Process the change.

Specified by:
process in interface ChangeSink
Parameters:
change - The change 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