public class XMLBuffer extends Object
| Constructor and Description |
|---|
XMLBuffer() |
| Modifier and Type | Method and Description |
|---|---|
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,
StringBuilder content)
Add a complete tag with content.
|
String |
toString()
Convert the buffer to a string, closing any open tags
|
public XMLBuffer openTag(String tagname)
tagname - public XMLBuffer closeTag(String tagname)
tagname - IllegalArgumentException - if the tag names do not matchpublic XMLBuffer tag(String tagname, String content)
tagname - content - public XMLBuffer tag(String tagname, StringBuilder content)
tagname - content - Copyright © 1998-2015 Apache Software Foundation. All Rights Reserved.