org.apache.qpid.info.util
Class XMLWriter

java.lang.Object
  extended by org.apache.qpid.info.util.XMLWriter

public class XMLWriter
extends Object

Naive and rudimentary XML writer It has methods to write the header, a tag with attributes and values. It escapes the XML special characters


Constructor Summary
XMLWriter(StringBuffer sb)
           
 
Method Summary
 StringBuffer getXML()
           
 void writeCloseTag(String tagName)
           
 void writeOpenTag(String tagName, Map<String,String> attributes)
           
 void writeTag(String tagName, Map<String,String> attributes, String value)
           
 void writeXMLHeader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLWriter

public XMLWriter(StringBuffer sb)
Method Detail

getXML

public StringBuffer getXML()

writeXMLHeader

public void writeXMLHeader()

writeTag

public void writeTag(String tagName,
                     Map<String,String> attributes,
                     String value)

writeOpenTag

public void writeOpenTag(String tagName,
                         Map<String,String> attributes)

writeCloseTag

public void writeCloseTag(String tagName)


Licensed to the Apache Software Foundation