wmlwriter.java

来自「适合手机 、pda 设备java环境的经典xml 解释程序」· Java 代码 · 共 53 行

JAVA
53
字号
// provided by Michael Wallbaumpackage org.kxml.wap;import java.io.*;/** A parser for WML built on top of the WbxmlParser by     setting the corresponding TagTable, AttrStartTable and    AttrValueTable defined in the class Wml */public class WmlWriter extends WbxmlWriter {    public WmlWriter (OutputStream out) throws IOException {	super (out);		setTagTable (0, Wml.tagTable);	setAttrStartTable (0, Wml.attrStartTable);	setAttrValueTable (0, Wml.attrValueTable);    }    /*      public ParseEvent parseWapExtension (int id) {          public void ext_i (int id, String par) throws SAXException {      String dec = "$("+par+")";	dh.characters (dec.toCharArray (), 0, dec.length ());    }        public void ext_t (int id, int par) throws SAXException {	StringBuffer buf = new StringBuffer ();		while (stringTable [par] != 0) 	    buf.append (stringTable [par++]); 	ext_i (id, buf.toString ());    }    public void opaque (byte [] bytes) throws SAXException {	throw new SAXException ("OPAQUE invalid in WML");    }    public void ext (int id)  throws SAXException {	throw new SAXException ("EXT_"+id+" reserved in WML");    }    */}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?