superwaba.ext.xplat.webservice
Class XmlWriter
java.lang.Object
|
+--superwaba.ext.xplat.webservice.XmlWriter
- public class XmlWriter
- extends java.lang.Object
Correctly formats Strings in xml syntax Currently only supports ISO-8859-1 encoding of XML.
|
Method Summary |
void |
chardata(java.lang.String text)
Formats cdata for xml |
void |
endElement(java.lang.String elem)
Formats a closing xml tag |
void |
reset()
Resets this XmlWriter so it can be used again |
void |
startElement(java.lang.String elem)
Formats an opening xml tag |
java.lang.String |
toString()
Gets this writer's contents |
void |
write(java.lang.String text)
Write the given text. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
XmlWriter
public XmlWriter()
reset
public void reset()
- Resets this XmlWriter so it can be used again
write
public void write(java.lang.String text)
- Write the given text.
toString
public java.lang.String toString()
- Gets this writer's contents
- Overrides:
- toString in class java.lang.Object
- Returns:
- All that was written to the internal buffer
startElement
public void startElement(java.lang.String elem)
- Formats an opening xml tag
- Parameters:
elem - The element of the opening tag
endElement
public void endElement(java.lang.String elem)
- Formats a closing xml tag
- Parameters:
elem - The element of the closing tag
chardata
public void chardata(java.lang.String text)
- Formats cdata for xml
- Parameters:
text - The character data to be formatted