1 18 package sync4j.server.notification; 19 20 import java.io.IOException ; 21 import java.io.OutputStream ; 22 23 import org.kxml.wap.Wbxml; 24 import org.kxml.wap.WbxmlWriter; 25 26 27 28 34 public class WapProvisioningDocWriter extends WbxmlWriter { 35 37 private OutputStream out = null; 39 40 44 public WapProvisioningDocWriter(OutputStream out) throws IOException { 45 super(out); 46 47 this.out = out; 48 49 setTagTable(0, WapProvisioningDocWBXML.tagTable[0]); 50 setTagTable(1, WapProvisioningDocWBXML.tagTable[1]); 51 52 setAttrStartTable(0, WapProvisioningDocWBXML.attributeStartTable[0]); 53 setAttrStartTable(1, WapProvisioningDocWBXML.attributeStartTable[1]); 54 55 setAttrValueTable(0, WapProvisioningDocWBXML.paramValueTable[0]); 56 setAttrValueTable(1, WapProvisioningDocWBXML.paramValueTable[1]); 57 } 58 59 60 65 protected void writeHeader() throws IOException { 66 out.write(Wbxml.WBXML_VERSION_12 ); out.write(0x0B); out.write(Wbxml.WBXML_CHARSET_UTF8); } 70 71 72 } | Popular Tags |