org.openstreetmap.osmosis.core.xml.v0_6.impl
Class FastXmlParser

java.lang.Object
  extended by org.openstreetmap.osmosis.core.xml.v0_6.impl.FastXmlParser

public class FastXmlParser
extends java.lang.Object

Reads the contents of an osm file using a Stax parser.

Author:
Jiri Klement, Brett Henderson

Constructor Summary
FastXmlParser(Sink sink, javax.xml.stream.XMLStreamReader reader, boolean enableDateParsing)
          Creates a new instance.
 
Method Summary
 void readOsm()
          Parses the xml and sends all data to the sink.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastXmlParser

public FastXmlParser(Sink sink,
                     javax.xml.stream.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 Detail

readOsm

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