org.kxml2.wap
Class WbxmlSerializer
public
class
WbxmlSerializer
extends Object
implements XmlSerializer
A class for writing WBXML.
Method Summary |
XmlSerializer | attribute(String namespace, String name, String value) |
void | cdsect(String cdsect) |
void | checkPending(boolean degenerated) |
void | comment(String comment) |
void | docdecl(String docdecl) |
void | endDocument() |
XmlSerializer | endTag(String namespace, String name) |
void | entityRef(String er) |
void | flush() ATTENTION: flush cannot work since Wbxml documents require
need buffering. |
int | getDepth() |
boolean | getFeature(String name) |
String | getName() |
String | getNamespace() |
String | getPrefix(String nsp, boolean create) |
Object | getProperty(String name) |
void | ignorableWhitespace(String sp) |
void | processingInstruction(String pi) |
void | setAttrStartTable(int page, String[] attrStartTable)
Sets the attribute start Table for a given page.
|
void | setAttrValueTable(int page, String[] attrValueTable)
Sets the attribute value Table for a given page.
|
void | setFeature(String name, boolean value) |
void | setOutput(Writer writer) |
void | setOutput(OutputStream out, String encoding) |
void | setPrefix(String prefix, String nsp) |
void | setProperty(String property, Object value) |
void | setTagTable(int page, String[] tagTable)
Sets the tag table for a given page.
|
void | startDocument(String s, Boolean b) |
XmlSerializer | startTag(String namespace, String name) |
XmlSerializer | text(char[] chars, int start, int len) |
XmlSerializer | text(String text) |
void | writeLegacy(int type, String data) currently ignored! |
public XmlSerializer attribute(String namespace, String name, String value)
public void cdsect(String cdsect)
public void checkPending(boolean degenerated)
public void comment(String comment)
public void docdecl(String docdecl)
public void endDocument()
public XmlSerializer endTag(String namespace, String name)
public void entityRef(String er)
public void flush()
ATTENTION: flush cannot work since Wbxml documents require
need buffering. Thus, this call does nothing.
public int getDepth()
public boolean getFeature(String name)
public String getName()
public String getNamespace()
public String getPrefix(String nsp, boolean create)
public Object getProperty(String name)
public void ignorableWhitespace(String sp)
public void processingInstruction(String pi)
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
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.
public void setFeature(String name, boolean value)
public void setOutput(Writer writer)
public void setOutput(OutputStream out, String encoding)
public void setPrefix(String prefix, String nsp)
public void setProperty(String property, Object value)
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.
public void startDocument(String s, Boolean b)
public XmlSerializer startTag(String namespace, String name)
public XmlSerializer text(char[] chars, int start, int len)
public XmlSerializer text(String text)
public void writeLegacy(int type, String data)
currently ignored!