Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.aendvari.common.osm
Class OsmPrinter  view OsmPrinter download OsmPrinter.java

java.lang.Object
  extended bycom.aendvari.common.osm.OsmPrinter

public class OsmPrinter
extends java.lang.Object

This class prints a given Osm or OsmNode in a human-readable format.


Constructor Summary
OsmPrinter()
           
 
Method Summary
private static java.lang.String examineChildNode(OsmNode osmNode, java.lang.String indent)
          Convert the node into a string representation.
private static java.lang.String extractAttributes(OsmNode osmNode)
          Extract and return the attributes of the node as a string.
static java.lang.String nodeToString(OsmNode osmNode)
          Return the OsmNode as it's string representation.
static void writeString(OsmNode osmNode, java.io.Writer writer)
          Print the OsmNode string representation to the supplied Writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsmPrinter

public OsmPrinter()
Method Detail

nodeToString

public static java.lang.String nodeToString(OsmNode osmNode)
Return the OsmNode as it's string representation.


writeString

public static void writeString(OsmNode osmNode,
                               java.io.Writer writer)
                        throws java.io.IOException
Print the OsmNode string representation to the supplied Writer.


examineChildNode

private static java.lang.String examineChildNode(OsmNode osmNode,
                                                 java.lang.String indent)
Convert the node into a string representation.


extractAttributes

private static java.lang.String extractAttributes(OsmNode osmNode)
Extract and return the attributes of the node as a string.