org.openstreetmap.osmosis.core.xml.v0_5.impl
Class OsmChangeWriter

java.lang.Object
  extended by org.openstreetmap.osmosis.core.xml.common.ElementWriter
      extended by org.openstreetmap.osmosis.core.xml.v0_5.impl.OsmChangeWriter

public class OsmChangeWriter
extends ElementWriter

Renders OSM changes as xml.

Author:
Brett Henderson

Field Summary
 
Fields inherited from class org.openstreetmap.osmosis.core.xml.common.ElementWriter
writer
 
Constructor Summary
OsmChangeWriter(java.lang.String elementName, int indentLevel)
          Creates a new instance.
 
Method Summary
 void begin()
          Begins an element.
 void end()
          Ends an element.
 void process(ChangeContainer changeContainer)
          Writes the change in the container.
 void setWriter(java.io.BufferedWriter writer)
          Sets the writer used as the xml output destination.
 
Methods inherited from class org.openstreetmap.osmosis.core.xml.common.ElementWriter
addAttribute, beginOpenElement, closeElement, endOpenElement, getTimestampFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsmChangeWriter

public OsmChangeWriter(java.lang.String elementName,
                       int indentLevel)
Creates a new instance.

Parameters:
elementName - The name of the element to be written.
indentLevel - The indent level of the element.
Method Detail

setWriter

public void setWriter(java.io.BufferedWriter writer)
Sets the writer used as the xml output destination.

Overrides:
setWriter in class ElementWriter
Parameters:
writer - The writer.

begin

public void begin()
Begins an element.


end

public void end()
Ends an element.


process

public void process(ChangeContainer changeContainer)
Writes the change in the container.

Parameters:
changeContainer - The container holding the change.