org.openstreetmap.osmosis.core.xml.v0_6.impl
Class RelationWriter

java.lang.Object
  extended by org.openstreetmap.osmosis.core.xml.common.ElementWriter
      extended by org.openstreetmap.osmosis.core.xml.v0_6.impl.RelationWriter

public class RelationWriter
extends ElementWriter

Renders a relation as xml.

Author:
Brett Henderson

Constructor Summary
RelationWriter(java.lang.String elementName, int indentLevel)
          Creates a new instance.
 
Method Summary
 void process(Relation relation)
          Writes the relation.
 void setWriter(java.io.Writer 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

RelationWriter

public RelationWriter(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

process

public void process(Relation relation)
Writes the relation.

Parameters:
relation - The relation to be processed.

setWriter

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

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