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

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

public class WayWriter
extends ElementWriter

Renders a way as xml.

Author:
Brett Henderson

Field Summary
 
Fields inherited from class org.openstreetmap.osmosis.core.xml.common.ElementWriter
writer
 
Constructor Summary
WayWriter(java.lang.String elementName, int indentLevel)
          Creates a new instance.
 
Method Summary
 void process(Way way)
          Writes the way.
 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

WayWriter

public WayWriter(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(Way way)
Writes the way.

Parameters:
way - The way to be processed.

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.