Class OsmChangeWriter
java.lang.Object
org.openstreetmap.osmosis.xml.common.ElementWriter
org.openstreetmap.osmosis.xml.v0_6.impl.OsmChangeWriter
Renders OSM changes as xml.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance that starts with an <osmChange> -element at indent-level 0.OsmChangeWriter(String elementName, int indentLevel) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidbegin()Begins an <osmchange>-element.voidend()Ends an <osmchange>-element.voidprocess(org.openstreetmap.osmosis.core.container.v0_6.ChangeContainer changeContainer) Writes the change in the container.voidSets the writer used as the xml output destination.Methods inherited from class org.openstreetmap.osmosis.xml.common.ElementWriter
addAttribute, beginOpenElement, closeElement, endOpenElement, getTimestampFormat
-
Constructor Details
-
OsmChangeWriter
public OsmChangeWriter()Creates a new instance that starts with an <osmChange> -element at indent-level 0. -
OsmChangeWriter
Creates a new instance.- Parameters:
elementName- The name of the element to be written.indentLevel- The indent level of the element.
-
-
Method Details
-
setWriter
Sets the writer used as the xml output destination.- Overrides:
setWriterin classElementWriter- Parameters:
aWriter- The writer.
-
begin
public void begin()Begins an <osmchange>-element. -
end
public void end()Ends an <osmchange>-element. -
process
public void process(org.openstreetmap.osmosis.core.container.v0_6.ChangeContainer changeContainer) Writes the change in the container.- Parameters:
changeContainer- The container holding the change.
-