亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? wbxmlparser.java

?? < JavaME核心技術最佳實踐>>的全部源代碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
                i -= 4;            }        }        if (any) {            for (int i = (attributeCount << 2) - 4;                i >= 0;                i -= 4) {                String attrName = attributes[i + 2];                int cut = attrName.indexOf(':');                if (cut == 0)                    throw new RuntimeException(                        "illegal attribute name: "                            + attrName                            + " at "                            + this);                else if (cut != -1) {                    String attrPrefix =                        attrName.substring(0, cut);                    attrName = attrName.substring(cut + 1);                    String attrNs = getNamespace(attrPrefix);                    if (attrNs == null)                        throw new RuntimeException(                            "Undefined Prefix: "                                + attrPrefix                                + " in "                                + this);                    attributes[i] = attrNs;                    attributes[i + 1] = attrPrefix;                    attributes[i + 2] = attrName;                    for (int j = (attributeCount << 2) - 4;                        j > i;                        j -= 4)                        if (attrName.equals(attributes[j + 2])                            && attrNs.equals(attributes[j]))                            exception(                                "Duplicate Attribute: {"                                    + attrNs                                    + "}"                                    + attrName);                }            }        }        int cut = name.indexOf(':');        if (cut == 0)            exception("illegal tag name: " + name);        else if (cut != -1) {            prefix = name.substring(0, cut);            name = name.substring(cut + 1);        }        this.namespace = getNamespace(prefix);        if (this.namespace == null) {            if (prefix != null)                exception("undefined prefix: " + prefix);            this.namespace = NO_NAMESPACE;        }        return any;    }	private final void setTable(int page, int type, String[] table) {		if(stringTable != null){			throw new RuntimeException("setXxxTable must be called before setInput!");		}		while(tables.size() < 3*page +3){			tables.addElement(null);		}		tables.setElementAt(table, page*3+type);	}				    private final void exception(String desc)        throws XmlPullParserException {        throw new XmlPullParserException(desc, this, null);    }	private void selectPage(int nr, boolean tags) throws XmlPullParserException{		if(tables.size() == 0 && nr == 0) return;				if(nr*3 > tables.size())			exception("Code Page "+nr+" undefined!");				if(tags)			tagTable = (String[]) tables.elementAt(nr * 3 + TAG_TABLE);		else {			attrStartTable = (String[]) tables.elementAt(nr * 3 + ATTR_START_TABLE);			attrValueTable = (String[]) tables.elementAt(nr * 3 + ATTR_VALUE_TABLE);		}	}    private final void nextImpl()        throws IOException, XmlPullParserException {        String s;        if (type == END_TAG) {            depth--;        }        if (degenerated) {            type = XmlPullParser.END_TAG;            degenerated = false;            return;        }        text = null;        prefix = null;        name = null;        int id = peekId ();        while(id == Wbxml.SWITCH_PAGE){        	nextId = -2;			selectPage(readByte(), true);			id = peekId();        	        }        nextId = -2;        switch (id) {            case -1 :                type = XmlPullParser.END_DOCUMENT;                break;            case Wbxml.END :                {                    int sp = (depth - 1) << 2;                    type = END_TAG;                    namespace = elementStack[sp];                    prefix = elementStack[sp + 1];                    name = elementStack[sp + 2];                }                break;            case Wbxml.ENTITY :                {                    type = ENTITY_REF;                    char c = (char) readInt();                    text = "" + c;                    name = "#" + ((int) c);                }                break;            case Wbxml.STR_I :                type = TEXT;                text = readStrI();                break;            case Wbxml.EXT_I_0 :            case Wbxml.EXT_I_1 :            case Wbxml.EXT_I_2 :            case Wbxml.EXT_T_0 :            case Wbxml.EXT_T_1 :            case Wbxml.EXT_T_2 :            case Wbxml.EXT_0 :            case Wbxml.EXT_1 :            case Wbxml.EXT_2 :            case Wbxml.OPAQUE :                parseWapExtension(id);                break;            case Wbxml.PI :                throw new RuntimeException("PI curr. not supp.");                // readPI;                // break;            case Wbxml.STR_T :                {                    type = TEXT;                    int pos = readInt();                    int end = stringTable.indexOf('\0', pos);                    text = stringTable.substring(pos, end);                }                break;            default :                parseElement(id);        }        //        }        //      while (next == null);        //        return next;    }        public void parseWapExtension(int id)        throws IOException, XmlPullParserException {        type = WAP_EXTENSION;        wapExtensionCode = id;        switch (id) {            case Wbxml.EXT_I_0 :            case Wbxml.EXT_I_1 :            case Wbxml.EXT_I_2 :                wapExtensionData = readStrI();                break;            case Wbxml.EXT_T_0 :            case Wbxml.EXT_T_1 :            case Wbxml.EXT_T_2 :                wapExtensionData = new Integer(readInt());                break;            case Wbxml.EXT_0 :            case Wbxml.EXT_1 :            case Wbxml.EXT_2 :                break;            case Wbxml.OPAQUE :                {                    int len = readInt();                    byte[] buf = new byte[len];                    for (int i = 0;                        i < len;                        i++) // enhance with blockread!                        buf[i] = (byte) readByte();                    wapExtensionData = buf;                } // case OPAQUE            	break;            	            default:                exception("illegal id: "+id);        } // SWITCH    }    public void readAttr() throws IOException, XmlPullParserException {        int id = readByte();        int i = 0;        while (id != 1) {        	while(id == Wbxml.SWITCH_PAGE){                selectPage(readByte(), false);                id = readByte();            }         	            String name = resolveId(attrStartTable, id);            StringBuffer value;            int cut = name.indexOf('=');            if (cut == -1)                value = new StringBuffer();            else {                value =                    new StringBuffer(name.substring(cut + 1));                name = name.substring(0, cut);            }            id = readByte();            while (id > 128            	|| id == Wbxml.SWITCH_PAGE                || id == Wbxml.ENTITY                || id == Wbxml.STR_I                || id == Wbxml.STR_T                || (id >= Wbxml.EXT_I_0 && id <= Wbxml.EXT_I_2)                || (id >= Wbxml.EXT_T_0 && id <= Wbxml.EXT_T_2)) {                switch (id) {					case Wbxml.SWITCH_PAGE :						selectPage(readByte(), false);						break;                	                    case Wbxml.ENTITY :                        value.append((char) readInt());                        break;                    case Wbxml.STR_I :                        value.append(readStrI());                        break;                    case Wbxml.EXT_I_0 :                    case Wbxml.EXT_I_1 :                    case Wbxml.EXT_I_2 :                    case Wbxml.EXT_T_0 :                    case Wbxml.EXT_T_1 :                    case Wbxml.EXT_T_2 :                    case Wbxml.EXT_0 :                    case Wbxml.EXT_1 :                    case Wbxml.EXT_2 :                    case Wbxml.OPAQUE :                        throw new RuntimeException("wap extension in attr not supported yet");                        /*                                                ParseEvent e = parseWapExtension(id);                                                if (!(e.getType() != Xml.TEXT                                                    && e.getType() != Xml.WHITESPACE))                                                    throw new RuntimeException("parse WapExtension must return Text Event in order to work inside Attributes!");                                                                        value.append(e.getText());                                                                        //value.append (handleExtension (id)); // skip EXT in ATTR                                                //break;                        */                    case Wbxml.STR_T :                        value.append(readStrT());                        break;                    default :                        value.append(                            resolveId(attrValueTable, id));                }                id = readByte();            }            attributes = ensureCapacity(attributes, i + 4);            attributes[i++] = "";            attributes[i++] = null;            attributes[i++] = name;            attributes[i++] = value.toString();                        attributeCount++;        }    }	private int peekId () throws IOException {		if (nextId == -2) {			nextId = in.read ();		}		return nextId;	}				    String resolveId(String[] tab, int id) throws IOException {        int idx = (id & 0x07f) - 5;        if (idx == -1)            return readStrT();        if (idx < 0            || tab == null            || idx >= tab.length            || tab[idx] == null)            throw new IOException("id " + id + " undef.");        return tab[idx];    }    void parseElement(int id)        throws IOException, XmlPullParserException {		type = START_TAG;        name = resolveId(tagTable, id & 0x03f);		attributeCount = 0;        if ((id & 128) != 0) {            readAttr();        }        degenerated = (id & 64) == 0;        int sp = depth++ << 2;        // transfer to element stack        elementStack = ensureCapacity(elementStack, sp + 4);        elementStack[sp + 3] = name;        if (depth >= nspCounts.length) {             int[] bigger = new int[depth + 4];             System.arraycopy(nspCounts, 0, bigger, 0, nspCounts.length);             nspCounts = bigger;        }                nspCounts[depth] = nspCounts[depth - 1];         for (int i = attributeCount - 1; i > 0; i--) {            for (int j = 0; j < i; j++) {                if (getAttributeName(i)                    .equals(getAttributeName(j)))                    exception(                        "Duplicate Attribute: "                            + getAttributeName(i));            }        }        if (processNsp)            adjustNsp();        else            namespace = "";        elementStack[sp] = namespace;        elementStack[sp + 1] = prefix;        elementStack[sp + 2] = name;    }    private final String[] ensureCapacity(        String[] arr,        int required) {        if (arr.length >= required)            return arr;        String[] bigger = new String[required + 16];        System.arraycopy(arr, 0, bigger, 0, arr.length);        return bigger;    }    int readByte() throws IOException {        int i = in.read();        if (i == -1)            throw new IOException("Unexpected EOF");        return i;    }    int readInt() throws IOException {        int result = 0;        int i;        do {            i = readByte();            result = (result << 7) | (i & 0x7f);        }        while ((i & 0x80) != 0);        return result;    }    String readStrI() throws IOException {        StringBuffer buf = new StringBuffer();        boolean wsp = true;        while (true) {            int i = in.read();            if (i == -1)                throw new IOException("Unexpected EOF");            if (i == 0)                break;            if (i > 32)                wsp = false;            buf.append((char) i);        }        isWhitespace = wsp;        return buf.toString();    }    String readStrT() throws IOException {        int pos = readInt();        int end = stringTable.indexOf('\0', pos);        return stringTable.substring(pos, end);    }    /**      * Sets the tag table for a given page.     * The first string in the array defines tag 5, the second tag 6 etc.     */    public void setTagTable(int page, String[] table) {    	setTable(page, TAG_TABLE, table);    	//        this.tagTable = tagTable;  //      if (page != 0)    //        throw new RuntimeException("code pages curr. not supp.");    }    /** Sets the attribute start Table for a given page.     *	The first string in the array defines attribute      *  5, the second attribute 6 etc.     *  Currently, only page 0 is supported. Please use the      *  character '=' (without quote!) as delimiter      *  between the attribute name and the (start of the) value      */    public void setAttrStartTable(        int page,        String[] table) {		setTable(page, ATTR_START_TABLE, table);    }    /** 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.     *  Currently, only page 0 is supported.     */    public void setAttrValueTable(        int page,        String[] table) {		setTable(page, ATTR_VALUE_TABLE, table);    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一区在线播放| 亚洲欧洲精品成人久久奇米网| 欧美色视频在线观看| 欧美在线一区二区| 欧美一区二区高清| 久久亚洲欧美国产精品乐播| 国产精品久久久久久久久搜平片| 《视频一区视频二区| 视频一区二区三区在线| 九色综合狠狠综合久久| 成人午夜免费av| 欧美日本一区二区| 日韩一区中文字幕| 日本成人中文字幕| 91色乱码一区二区三区| 欧美不卡在线视频| 亚洲午夜av在线| 不卡一卡二卡三乱码免费网站| 国产精品系列在线| 久久99国产精品免费网站| 91蜜桃在线免费视频| 久久精品欧美一区二区三区不卡 | 麻豆视频一区二区| 日本高清视频一区二区| 国产日韩精品视频一区| 美女在线视频一区| 欧美二区在线观看| 亚洲一区二区三区免费视频| 成人综合婷婷国产精品久久蜜臀| 久久婷婷久久一区二区三区| 天天色图综合网| 欧美在线免费视屏| 亚洲国产中文字幕| 日韩一区二区三区四区五区六区| 亚洲图片欧美一区| 欧美女孩性生活视频| 性做久久久久久| 精品三级在线看| 美女mm1313爽爽久久久蜜臀| 精品免费日韩av| 国产精品1区2区| 亚洲丝袜制服诱惑| 91精品蜜臀在线一区尤物| 韩国午夜理伦三级不卡影院| 久久久久久久久伊人| 成人午夜电影小说| 亚洲一区二区三区四区在线免费观看 | 不卡视频一二三四| 亚洲午夜电影在线观看| 337p粉嫩大胆噜噜噜噜噜91av | 国产肉丝袜一区二区| 欧美综合视频在线观看| 亚洲视频一区二区在线观看| 欧美三级电影网| 国产成人午夜高潮毛片| 亚洲免费视频成人| 精品久久人人做人人爱| 一本久久a久久精品亚洲| 男女视频一区二区| 亚洲人成在线播放网站岛国| 日韩欧美自拍偷拍| 欧美体内she精高潮| 国产综合色产在线精品| 亚洲精选在线视频| 国产日韩欧美不卡在线| 欧美一区二区日韩一区二区| 91无套直看片红桃| 国产激情一区二区三区| 日韩av电影免费观看高清完整版在线观看 | 欧美色手机在线观看| 成人ar影院免费观看视频| 久久99精品久久只有精品| 一区二区三区四区中文字幕| 国产精品久久久久久久久久免费看| 欧美日本韩国一区二区三区视频| 色婷婷综合久色| 97成人超碰视| 欧美视频一区二| 欧美自拍丝袜亚洲| 在线观看亚洲精品| 欧美日韩一区不卡| 欧美一区二区私人影院日本| 欧美高清精品3d| 26uuu另类欧美| 国产午夜精品理论片a级大结局| 亚洲国产日产av| 丝袜亚洲精品中文字幕一区| 午夜伊人狠狠久久| 人人超碰91尤物精品国产| 久久国内精品自在自线400部| 国内精品写真在线观看| 国产伦精品一区二区三区免费 | 久久综合久久99| 亚洲国产精品激情在线观看| 综合av第一页| 日韩av中文字幕一区二区三区| 欧美a一区二区| 99久久精品久久久久久清纯| 欧美综合天天夜夜久久| 久久综合成人精品亚洲另类欧美 | 国模套图日韩精品一区二区| 日韩区在线观看| 最好看的中文字幕久久| 另类综合日韩欧美亚洲| 欧美中文一区二区三区| 久久九九久久九九| 免费成人在线播放| 欧美日韩精品欧美日韩精品一 | 国产不卡在线播放| 欧美电视剧免费全集观看| 一区二区三区四区亚洲| 精品一区二区成人精品| 欧美另类videos死尸| 亚洲免费在线视频| 福利电影一区二区三区| 日韩一区二区电影在线| 亚洲va欧美va人人爽午夜| 91老师国产黑色丝袜在线| 亚洲国产岛国毛片在线| 国产一区在线精品| 久久人人超碰精品| 精品一区二区免费视频| 久久综合av免费| 国产剧情一区在线| 亚洲日本va午夜在线电影| 欧美国产精品一区二区三区| 欧美性猛交xxxx黑人交| 亚洲精品在线观看视频| 国产美女精品人人做人人爽| 久久久久久久久久看片| 懂色av中文一区二区三区| 国产网站一区二区| av中文字幕在线不卡| 悠悠色在线精品| 欧美一区二区免费视频| 国产一区二区0| 亚洲天堂2016| 91精品国产综合久久精品性色| 日本欧美大码aⅴ在线播放| 亚洲精品在线观看网站| 一本久道中文字幕精品亚洲嫩| 日韩一区欧美二区| 中文字幕精品综合| 欧美福利视频一区| 国产精品中文字幕日韩精品| 亚洲乱码国产乱码精品精可以看 | 成人免费一区二区三区视频 | 亚洲国产wwwccc36天堂| 精品国产乱码久久久久久老虎| av在线播放一区二区三区| 午夜一区二区三区在线观看| 久久综合丝袜日本网| 欧美三级在线视频| 不卡av免费在线观看| 男女视频一区二区| 亚洲一区二区三区四区中文字幕| 欧美激情艳妇裸体舞| 欧美mv日韩mv国产网站| 欧美日韩在线播放| 91国偷自产一区二区开放时间 | 日本伊人午夜精品| 亚洲成在人线在线播放| 18成人在线观看| 国产偷国产偷亚洲高清人白洁| 在线成人免费观看| 欧美视频你懂的| 一本一道波多野结衣一区二区| 国产精品白丝av| 国产精品一二三区在线| 久久国产欧美日韩精品| 国内成人免费视频| 久久精品国产99国产| 全国精品久久少妇| 国产精品亚洲视频| 国产不卡视频一区二区三区| 国产成人亚洲精品青草天美| 成人激情黄色小说| 91久久精品一区二区| 欧美亚洲综合一区| 欧美一级xxx| 精品成人免费观看| 综合av第一页| 蜜臀av性久久久久蜜臀av麻豆| 久久超碰97中文字幕| 91亚洲国产成人精品一区二区三| 色天天综合色天天久久| 91麻豆精品国产自产在线| 精品少妇一区二区三区在线播放 | 欧美一区二区私人影院日本| 国产亚洲欧美激情| 亚洲成人av一区二区| 激情六月婷婷久久| 色综合天天综合| 久久久三级国产网站| 亚洲午夜久久久久久久久电影院| 秋霞成人午夜伦在线观看| aaa欧美日韩| 久久亚洲精品小早川怜子| 日日摸夜夜添夜夜添亚洲女人| 国产精品69毛片高清亚洲|