Class XmlChangeWriter
java.lang.Object
org.openstreetmap.osmosis.xml.common.BaseXmlWriter
org.openstreetmap.osmosis.xml.v0_6.XmlChangeWriter
- All Implemented Interfaces:
AutoCloseable,org.openstreetmap.osmosis.core.lifecycle.Closeable,org.openstreetmap.osmosis.core.lifecycle.Completable,org.openstreetmap.osmosis.core.task.common.Task,org.openstreetmap.osmosis.core.task.v0_6.ChangeSink,org.openstreetmap.osmosis.core.task.v0_6.Initializable
public class XmlChangeWriter
extends BaseXmlWriter
implements org.openstreetmap.osmosis.core.task.v0_6.ChangeSink
An OSM change sink for storing all data to an xml file.
-
Constructor Summary
ConstructorsConstructorDescriptionXmlChangeWriter(BufferedWriter writer) Creates a new instance.XmlChangeWriter(File file, CompressionMethod compressionMethod) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCalls the begin method of the element writer used for this implementation.protected voidCalls the end method of the element writer used for this implementation.voidprocess(org.openstreetmap.osmosis.core.container.v0_6.ChangeContainer changeContainer) protected voidSets the writer on the element writer used for this implementation.Methods inherited from class org.openstreetmap.osmosis.xml.common.BaseXmlWriter
close, complete, initialize, initializeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openstreetmap.osmosis.core.lifecycle.Closeable
closeMethods inherited from interface org.openstreetmap.osmosis.core.lifecycle.Completable
completeMethods inherited from interface org.openstreetmap.osmosis.core.task.v0_6.Initializable
initialize
-
Constructor Details
-
XmlChangeWriter
Creates a new instance.- Parameters:
writer- The writer to send all data to.
-
XmlChangeWriter
Creates a new instance.- Parameters:
file- The file to write.compressionMethod- Specifies the compression method to employ.
-
-
Method Details
-
process
public void process(org.openstreetmap.osmosis.core.container.v0_6.ChangeContainer changeContainer) - Specified by:
processin interfaceorg.openstreetmap.osmosis.core.task.v0_6.ChangeSink
-
beginElementWriter
protected void beginElementWriter()Calls the begin method of the element writer used for this implementation.- Specified by:
beginElementWriterin classBaseXmlWriter
-
endElementWriter
protected void endElementWriter()Calls the end method of the element writer used for this implementation.- Specified by:
endElementWriterin classBaseXmlWriter
-
setWriterOnElementWriter
Sets the writer on the element writer used for this implementation.- Specified by:
setWriterOnElementWriterin classBaseXmlWriter- Parameters:
writer- The writer receiving xml data.
-