org.openstreetmap.osmosis.core.xml.v0_5.impl
Class SourceElementProcessor

java.lang.Object
  extended by org.openstreetmap.osmosis.core.xml.common.BaseElementProcessor
      extended by org.openstreetmap.osmosis.core.xml.v0_5.impl.SourceElementProcessor
All Implemented Interfaces:
ElementProcessor
Direct Known Subclasses:
BoundElementProcessor, EntityElementProcessor, OsmElementProcessor

public abstract class SourceElementProcessor
extends BaseElementProcessor

Provides common behaviour across all source element processors.

Author:
Brett Henderson

Constructor Summary
SourceElementProcessor(BaseElementProcessor parentProcessor, Sink sink, boolean enableDateParsing)
          Creates a new instance.
 
Method Summary
protected  Sink getSink()
           
 
Methods inherited from class org.openstreetmap.osmosis.core.xml.common.BaseElementProcessor
createTimestampContainer, getChild, getParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openstreetmap.osmosis.core.xml.common.ElementProcessor
begin, end
 

Constructor Detail

SourceElementProcessor

public SourceElementProcessor(BaseElementProcessor parentProcessor,
                              Sink sink,
                              boolean enableDateParsing)
Creates a new instance.

Parameters:
parentProcessor - The parent of this element processor.
sink - The sink for receiving processed data.
enableDateParsing - If true, dates will be parsed from xml data, else the current date will be used thus saving parsing time.
Method Detail

getSink

protected Sink getSink()
Returns:
The sink.