org.kxml2.wap

Class WbxmlSerializer

public class WbxmlSerializer extends Object implements XmlSerializer

A class for writing WBXML.
Method Summary
XmlSerializerattribute(String namespace, String name, String value)
voidcdsect(String cdsect)
voidcheckPending(boolean degenerated)
voidcomment(String comment)
voiddocdecl(String docdecl)
voidendDocument()
XmlSerializerendTag(String namespace, String name)
voidentityRef(String er)
voidflush()
ATTENTION: flush cannot work since Wbxml documents require need buffering.
intgetDepth()
booleangetFeature(String name)
StringgetName()
StringgetNamespace()
StringgetPrefix(String nsp, boolean create)
ObjectgetProperty(String name)
voidignorableWhitespace(String sp)
voidprocessingInstruction(String pi)
voidsetAttrStartTable(int page, String[] attrStartTable)
Sets the attribute start Table for a given page.
voidsetAttrValueTable(int page, String[] attrValueTable)
Sets the attribute value Table for a given page.
voidsetFeature(String name, boolean value)
voidsetOutput(Writer writer)
voidsetOutput(OutputStream out, String encoding)
voidsetPrefix(String prefix, String nsp)
voidsetProperty(String property, Object value)
voidsetTagTable(int page, String[] tagTable)
Sets the tag table for a given page.
voidstartDocument(String s, Boolean b)
XmlSerializerstartTag(String namespace, String name)
XmlSerializertext(char[] chars, int start, int len)
XmlSerializertext(String text)
voidwriteLegacy(int type, String data)
currently ignored!

Method Detail

attribute

public XmlSerializer attribute(String namespace, String name, String value)

cdsect

public void cdsect(String cdsect)

checkPending

public void checkPending(boolean degenerated)

comment

public void comment(String comment)

docdecl

public void docdecl(String docdecl)

endDocument

public void endDocument()

endTag

public XmlSerializer endTag(String namespace, String name)

entityRef

public void entityRef(String er)

flush

public void flush()
ATTENTION: flush cannot work since Wbxml documents require need buffering. Thus, this call does nothing.

getDepth

public int getDepth()

getFeature

public boolean getFeature(String name)

getName

public String getName()

getNamespace

public String getNamespace()

getPrefix

public String getPrefix(String nsp, boolean create)

getProperty

public Object getProperty(String name)

ignorableWhitespace

public void ignorableWhitespace(String sp)

processingInstruction

public void processingInstruction(String pi)

setAttrStartTable

public void setAttrStartTable(int page, String[] attrStartTable)
Sets the attribute start Table for a given page. The first string in the array defines attribute 5, the second attribute 6 etc. Please use the character '=' (without quote!) as delimiter between the attribute name and the (start of the) value

setAttrValueTable

public void setAttrValueTable(int page, String[] attrValueTable)
Sets the attribute value Table for a given page. The first string in the array defines attribute value 0x85, the second attribute value 0x86 etc.

setFeature

public void setFeature(String name, boolean value)

setOutput

public void setOutput(Writer writer)

setOutput

public void setOutput(OutputStream out, String encoding)

setPrefix

public void setPrefix(String prefix, String nsp)

setProperty

public void setProperty(String property, Object value)

setTagTable

public void setTagTable(int page, String[] tagTable)
Sets the tag table for a given page. The first string in the array defines tag 5, the second tag 6 etc.

startDocument

public void startDocument(String s, Boolean b)

startTag

public XmlSerializer startTag(String namespace, String name)

text

public XmlSerializer text(char[] chars, int start, int len)

text

public XmlSerializer text(String text)

writeLegacy

public void writeLegacy(int type, String data)
currently ignored!