org.apache.xmlrpc.applet

Class XmlRpcSupport.XmlWriter

class XmlRpcSupport.XmlWriter extends Object

A quick and dirty XML writer. TODO: Replace with core package's XmlWriter class.

See Also: Bugzilla bug 28982

Field Summary
StringBufferbuf
Stringenc
Constructor Summary
XmlWriter(StringBuffer buf)
Method Summary
voidchardata(String text)
voidemptyElement(String elem)
voidendElement(String elem)
byte[]getBytes()
voidstartElement(String elem)
StringtoString()
voidwrite(byte[] text)
voidwrite(char[] text)
voidwrite(String text)

Field Detail

buf

StringBuffer buf

enc

String enc

Constructor Detail

XmlWriter

public XmlWriter(StringBuffer buf)

Parameters: buf

Method Detail

chardata

public void chardata(String text)

Parameters: text

emptyElement

public void emptyElement(String elem)

Parameters: elem

endElement

public void endElement(String elem)

Parameters: elem

getBytes

public byte[] getBytes()

Returns:

Throws: UnsupportedEncodingException

startElement

public void startElement(String elem)

Parameters: elem

toString

public String toString()

Returns:

write

public void write(byte[] text)

Parameters: text

write

public void write(char[] text)

Parameters: text

write

public void write(String text)

Parameters: text

Copyright B) 1999-2002 Apache Software Foundation. All Rights Reserved.