|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.nimkathana.swx.xmlrpc.SimpleXmlWriter
Correctly formats Strings in xml syntax Currently only supports ISO-8859-1 encoding of XML.
Constructor Summary | |
SimpleXmlWriter(java.lang.StringBuffer buf)
|
Method Summary | |
void |
chardata(java.lang.String text)
Formats cdata for xml |
void |
emptyElement(java.lang.String elem)
Formats an xml tag which contains no character data (in other words, is an opening and closing tag in one) |
void |
endElement(java.lang.String elem)
Formats a closing xml tag |
byte[] |
getBytes()
Same as toString() |
void |
startElement(java.lang.String elem)
Formats an opening xml tag |
java.lang.String |
toString()
Gets this writer's contents |
void |
write(char[] text)
Appends text to this writer's buffer |
void |
write(java.lang.String text)
Same as write(char[] text) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SimpleXmlWriter(java.lang.StringBuffer buf)
buf
- The StringBuffer to be used to collect
this writer's writesMethod Detail |
public void write(char[] text)
text
to this writer's buffer
text
- The text to appendpublic void write(java.lang.String text)
write(char[] text)
public java.lang.String toString()
public byte[] getBytes()
toString()
public void startElement(java.lang.String elem)
elem
- The element of the opening tagpublic void endElement(java.lang.String elem)
elem
- The element of the closing tagpublic void emptyElement(java.lang.String elem)
elem
- The element of this empty tagpublic void chardata(java.lang.String text)
text
- The character data to be formatted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |