Class XmlChangeReader
java.lang.Object
org.openstreetmap.osmosis.xml.v0_6.impl.BaseXMLReader
org.openstreetmap.osmosis.xml.v0_6.XmlChangeReader
- All Implemented Interfaces:
Runnable,org.openstreetmap.osmosis.core.task.common.Task,org.openstreetmap.osmosis.core.task.v0_6.ChangeSource,org.openstreetmap.osmosis.core.task.v0_6.RunnableChangeSource
public class XmlChangeReader
extends BaseXMLReader
implements org.openstreetmap.osmosis.core.task.v0_6.RunnableChangeSource
A change source reading from an xml file. The entire contents of the file
are read.
-
Constructor Summary
ConstructorsConstructorDescriptionXmlChangeReader(File file, boolean enableDateParsing, CompressionMethod compressionMethod) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()Reads all data from the file and send it to the sink.voidsetChangeSink(org.openstreetmap.osmosis.core.task.v0_6.ChangeSink changeSink) Methods inherited from class org.openstreetmap.osmosis.xml.v0_6.impl.BaseXMLReader
handleXML, isEnableDateParsing, parseXML
-
Constructor Details
-
XmlChangeReader
Creates a new instance.- Parameters:
file- The file to read.enableDateParsing- If true, dates will be parsed from xml data, else the current date will be used thus saving parsing time.compressionMethod- Specifies the compression method to employ.
-
-
Method Details
-
setChangeSink
public void setChangeSink(org.openstreetmap.osmosis.core.task.v0_6.ChangeSink changeSink) - Specified by:
setChangeSinkin interfaceorg.openstreetmap.osmosis.core.task.v0_6.ChangeSource
-
run
public void run()Reads all data from the file and send it to the sink.
-