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.XmlSerializervoidvoidcheckPending(boolean degenerated) voidvoidvoidorg.xmlpull.v1.XmlSerializervoidvoidflush()ATTENTION: flush cannot work since Wbxml documents require buffering.intgetDepth()booleangetFeature(String name) getName()getProperty(String name) voidvoidvoidsetAttrStartTable(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(OutputStream out, String encoding) voidvoidvoidsetProperty(String property, Object value) voidsetTagTable(int page, String[] tagTable) Sets the tag table for a given page.voidstartDocument(String s, Boolean b) org.xmlpull.v1.XmlSerializerorg.xmlpull.v1.XmlSerializertext(char[] chars, int start, int len) org.xmlpull.v1.XmlSerializervoidwriteWapExtension(int type, Object data)
-
Constructor Details
-
WbxmlSerializer
public WbxmlSerializer()
-
-
Method Details
-
attribute
-
cdsect
- Specified by:
cdsectin interfaceorg.xmlpull.v1.XmlSerializer- Throws:
IOException
-
comment
- Specified by:
commentin interfaceorg.xmlpull.v1.XmlSerializer
-
docdecl
- Specified by:
docdeclin interfaceorg.xmlpull.v1.XmlSerializer
-
entityRef
- Specified by:
entityRefin interfaceorg.xmlpull.v1.XmlSerializer
-
getDepth
public int getDepth()- Specified by:
getDepthin interfaceorg.xmlpull.v1.XmlSerializer
-
getFeature
- Specified by:
getFeaturein interfaceorg.xmlpull.v1.XmlSerializer
-
getNamespace
- Specified by:
getNamespacein interfaceorg.xmlpull.v1.XmlSerializer
-
getName
- Specified by:
getNamein interfaceorg.xmlpull.v1.XmlSerializer
-
getPrefix
-
getProperty
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceorg.xmlpull.v1.XmlSerializer
-
endDocument
- Specified by:
endDocumentin 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:
flushin interfaceorg.xmlpull.v1.XmlSerializer
-
checkPending
- Throws:
IOException
-
processingInstruction
- Specified by:
processingInstructionin interfaceorg.xmlpull.v1.XmlSerializer
-
setFeature
- Specified by:
setFeaturein interfaceorg.xmlpull.v1.XmlSerializer
-
setOutput
- Specified by:
setOutputin interfaceorg.xmlpull.v1.XmlSerializer
-
setOutput
- Specified by:
setOutputin interfaceorg.xmlpull.v1.XmlSerializer- Throws:
IOException
-
setPrefix
-
setProperty
-
startDocument
- Specified by:
startDocumentin interfaceorg.xmlpull.v1.XmlSerializer- Throws:
IOException
-
startTag
- Specified by:
startTagin interfaceorg.xmlpull.v1.XmlSerializer- Throws:
IOException
-
text
- Specified by:
textin interfaceorg.xmlpull.v1.XmlSerializer- Throws:
IOException
-
text
- Specified by:
textin interfaceorg.xmlpull.v1.XmlSerializer- Throws:
IOException
-
endTag
- Specified by:
endTagin 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.
-