Class FastXmlParser

java.lang.Object
org.openstreetmap.osmosis.xml.v0_6.impl.FastXmlParser

public class FastXmlParser extends Object
Reads the contents of an osm file using a Stax parser.
  • Constructor Details

    • FastXmlParser

      public FastXmlParser(org.openstreetmap.osmosis.core.task.v0_6.Sink sink, XMLStreamReader reader, boolean enableDateParsing)
      Creates a new instance.
      Parameters:
      sink - The sink receiving all output data.
      reader - The input xml reader.
      enableDateParsing - If true, parsing of dates in the xml will be enabled, otherwise the current system time will be used.
  • Method Details

    • readOsm

      public void readOsm()
      Parses the xml and sends all data to the sink.