Class FastXmlParser
java.lang.Object
org.openstreetmap.osmosis.xml.v0_6.impl.FastXmlParser
Reads the contents of an osm file using a Stax parser.
-
Constructor Summary
ConstructorsConstructorDescriptionFastXmlParser(org.openstreetmap.osmosis.core.task.v0_6.Sink sink, XMLStreamReader reader, boolean enableDateParsing) Creates a new instance. -
Method Summary
-
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.
-