Class OsmHandler

java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.openstreetmap.osmosis.xml.v0_6.impl.OsmHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class OsmHandler extends DefaultHandler
This class is a SAX default handler for processing OSM XML files. It utilises a tree of element processors to extract the data from the xml structure.
  • Constructor Details

    • OsmHandler

      public OsmHandler(org.openstreetmap.osmosis.core.task.v0_6.Sink osmSink, boolean enableDateParsing)
      Creates a new instance.
      Parameters:
      osmSink - The new osmSink to write data to.
      enableDateParsing - If true, dates will be parsed from xml data, else the current date will be used thus saving parsing time.
  • Method Details