Class RelationWriter


public class RelationWriter extends EntityWriter
Renders a relation as xml.
  • Constructor Details

    • RelationWriter

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

    • process

      public void process(org.openstreetmap.osmosis.core.domain.v0_6.Relation relation)
      Writes the relation.
      Parameters:
      relation - The relation to be processed.
    • setWriter

      public void setWriter(Writer writer)
      Sets the writer used as the xml output destination.
      Overrides:
      setWriter in class ElementWriter
      Parameters:
      writer - The writer.