Package org.kxml2.wap
Class WbxmlSerializer
java.lang.Object
org.kxml2.wap.WbxmlSerializer
- All Implemented Interfaces:
org.xmlpull.v1.XmlSerializer
A class for writing WBXML.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.xmlpull.v1.XmlSerializer
void
void
checkPending
(boolean degenerated) void
void
void
org.xmlpull.v1.XmlSerializer
void
void
flush()
ATTENTION: flush cannot work since Wbxml documents require buffering.int
getDepth()
boolean
getFeature
(String name) getName()
getProperty
(String name) void
void
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
(OutputStream out, String encoding) void
void
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) org.xmlpull.v1.XmlSerializer
org.xmlpull.v1.XmlSerializer
text
(char[] chars, int start, int len) org.xmlpull.v1.XmlSerializer
void
writeWapExtension
(int type, Object data)
-
Constructor Details
-
WbxmlSerializer
public WbxmlSerializer()
-
-
Method Details
-
attribute
- Specified by:
attribute
in interfaceorg.xmlpull.v1.XmlSerializer
-
cdsect
- Specified by:
cdsect
in interfaceorg.xmlpull.v1.XmlSerializer
- Throws:
IOException
-
comment
- Specified by:
comment
in interfaceorg.xmlpull.v1.XmlSerializer
-
docdecl
- Specified by:
docdecl
in interfaceorg.xmlpull.v1.XmlSerializer
-
entityRef
- Specified by:
entityRef
in interfaceorg.xmlpull.v1.XmlSerializer
-
getDepth
public int getDepth()- Specified by:
getDepth
in interfaceorg.xmlpull.v1.XmlSerializer
-
getFeature
- Specified by:
getFeature
in interfaceorg.xmlpull.v1.XmlSerializer
-
getNamespace
- Specified by:
getNamespace
in interfaceorg.xmlpull.v1.XmlSerializer
-
getName
- Specified by:
getName
in interfaceorg.xmlpull.v1.XmlSerializer
-
getPrefix
- Specified by:
getPrefix
in interfaceorg.xmlpull.v1.XmlSerializer
-
getProperty
- Specified by:
getProperty
in interfaceorg.xmlpull.v1.XmlSerializer
-
ignorableWhitespace
- Specified by:
ignorableWhitespace
in interfaceorg.xmlpull.v1.XmlSerializer
-
endDocument
- Specified by:
endDocument
in interfaceorg.xmlpull.v1.XmlSerializer
- Throws:
IOException
-
flush
public void flush()ATTENTION: flush cannot work since Wbxml documents require buffering. Thus, this call does nothing.- Specified by:
flush
in interfaceorg.xmlpull.v1.XmlSerializer
-
checkPending
- Throws:
IOException
-
processingInstruction
- Specified by:
processingInstruction
in interfaceorg.xmlpull.v1.XmlSerializer
-
setFeature
- Specified by:
setFeature
in interfaceorg.xmlpull.v1.XmlSerializer
-
setOutput
- Specified by:
setOutput
in interfaceorg.xmlpull.v1.XmlSerializer
-
setOutput
- Specified by:
setOutput
in interfaceorg.xmlpull.v1.XmlSerializer
- Throws:
IOException
-
setPrefix
- Specified by:
setPrefix
in interfaceorg.xmlpull.v1.XmlSerializer
-
setProperty
- Specified by:
setProperty
in interfaceorg.xmlpull.v1.XmlSerializer
-
startDocument
- Specified by:
startDocument
in interfaceorg.xmlpull.v1.XmlSerializer
- Throws:
IOException
-
startTag
- Specified by:
startTag
in interfaceorg.xmlpull.v1.XmlSerializer
- Throws:
IOException
-
text
- Specified by:
text
in interfaceorg.xmlpull.v1.XmlSerializer
- Throws:
IOException
-
text
- Specified by:
text
in interfaceorg.xmlpull.v1.XmlSerializer
- Throws:
IOException
-
endTag
- Specified by:
endTag
in interfaceorg.xmlpull.v1.XmlSerializer
- Throws:
IOException
-
writeWapExtension
- Throws:
IOException
-
setTagTable
Sets the tag table for a given page. The first string in the array defines tag 5, the second tag 6 etc. -
setAttrStartTable
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
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.
-