|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.smackx.pubsub.util.XmlUtils
public class XmlUtils
Simple utility for pretty printing xml.
Constructor Summary | |
---|---|
XmlUtils()
|
Method Summary | |
---|---|
static void |
appendAttribute(java.lang.StringBuilder builder,
java.lang.String att,
java.lang.String value)
|
static void |
prettyPrint(java.lang.String header,
java.lang.String xml)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlUtils()
Method Detail |
---|
public static void prettyPrint(java.lang.String header, java.lang.String xml)
header
- Just a title for the stanza for readability. Single word no spaces since
it is inserted as the root element in the output.xml
- The string to pretty printpublic static void appendAttribute(java.lang.StringBuilder builder, java.lang.String att, java.lang.String value)
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |