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 Details

    • XmlChangeReader

      public XmlChangeReader(File file, boolean enableDateParsing, CompressionMethod compressionMethod)
      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:
      setChangeSink in interface org.openstreetmap.osmosis.core.task.v0_6.ChangeSource
    • run

      public void run()
      Reads all data from the file and send it to the sink.
      Specified by:
      run in interface Runnable