org.apache.jorphan.util
Class XMLBuffer
Provides XML string building methods.
Not synchronised.
XMLBuffer | closeTag(String tagname) - Close top tag from stack.
|
XMLBuffer | openTag(String tagname) - Open a tag; save on stack.
|
XMLBuffer | tag(String tagname, String content) - Add a complete tag with content.
|
XMLBuffer | tag(String tagname, StringBuffer content) - Add a complete tag with content.
|
String | toString() - Convert the buffer to a string, closing any open tags
|
XMLBuffer
public XMLBuffer()
closeTag
public XMLBuffer closeTag(String tagname)
Close top tag from stack.
openTag
public XMLBuffer openTag(String tagname)
Open a tag; save on stack.
tag
public XMLBuffer tag(String tagname,
String content)
Add a complete tag with content.
tag
public XMLBuffer tag(String tagname,
StringBuffer content)
Add a complete tag with content.
toString
public String toString()
Convert the buffer to a string, closing any open tags
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.