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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? wbxmlparser.java

?? < JavaME核心技術(shù)最佳實踐>>的全部源代碼
?? 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一区二区三区免费野_久草精品视频
欧美精品一区二区三区高清aⅴ| 丰满白嫩尤物一区二区| 在线播放一区二区三区| 亚洲超碰精品一区二区| 欧美日韩大陆一区二区| 久久99最新地址| 国产午夜精品一区二区| 91免费版在线| 天天综合网天天综合色| 久久久国产一区二区三区四区小说| 国产精品亚洲午夜一区二区三区| 国产精品第一页第二页第三页| 在线免费视频一区二区| 免费在线看成人av| 欧美激情一区二区三区| 欧美在线你懂得| 精品一区二区三区免费| 中文字幕一区二区三区视频| 在线精品亚洲一区二区不卡| 久久国产精品色婷婷| 国产精品女同一区二区三区| 在线观看一区二区视频| 国内精品国产三级国产a久久| 国产精品的网站| 欧美一区2区视频在线观看| 成人a级免费电影| 日韩电影网1区2区| 亚洲视频图片小说| 精品国产sm最大网站| 在线免费视频一区二区| 国产经典欧美精品| 视频一区在线播放| 亚洲欧美在线观看| 精品国产一区二区三区久久久蜜月 | 欧美在线|欧美| 久久国产尿小便嘘嘘| 国产精品成人免费| 欧美另类高清zo欧美| 成人午夜av影视| 久久99国产乱子伦精品免费| 亚洲欧美韩国综合色| 在线播放中文字幕一区| 99精品在线免费| 国产在线一区二区综合免费视频| 亚洲一区成人在线| 国产精品久久二区二区| 欧美一区二区三区视频免费| 色综合天天狠狠| 成人性生交大片免费 | 久久爱另类一区二区小说| 亚洲青青青在线视频| 久久久777精品电影网影网| 欧美人牲a欧美精品| 色欧美日韩亚洲| 成人h动漫精品一区二区| 久久电影国产免费久久电影| 亚洲gay无套男同| 亚洲综合色自拍一区| 综合av第一页| 国产精品国产三级国产a| 久久久久九九视频| 久久久久97国产精华液好用吗| 在线视频你懂得一区| 成人午夜视频在线| 国产综合久久久久久鬼色| 日韩成人一级片| 婷婷国产在线综合| 亚洲午夜免费电影| 亚洲人亚洲人成电影网站色| 国产欧美一区二区精品婷婷| 久久久亚洲国产美女国产盗摄 | 国产一区二区久久| 国产麻豆91精品| 国产suv精品一区二区883| 国产一区二区免费看| 国产99久久久国产精品潘金| 精品无人码麻豆乱码1区2区| 精品一区二区三区香蕉蜜桃| 久草热8精品视频在线观看| 极品美女销魂一区二区三区| 国产在线视频精品一区| 国产成人av电影| 99久久精品国产麻豆演员表| 色婷婷久久久综合中文字幕 | 99视频国产精品| 91在线观看视频| 色综合色狠狠天天综合色| 欧美亚洲国产一区二区三区va| 欧美色图在线观看| 91麻豆精品国产91久久久久久 | 8x福利精品第一导航| 欧美一级国产精品| 久久久久久免费毛片精品| 国产精品欧美综合在线| 伊人夜夜躁av伊人久久| 天天射综合影视| 日本中文字幕不卡| 国产福利视频一区二区三区| 97久久精品人人爽人人爽蜜臀| 97精品超碰一区二区三区| 欧美喷水一区二区| 欧美日韩精品一区二区| 欧美岛国在线观看| 国产亚洲综合av| 亚洲免费在线观看视频| 亚洲欧美怡红院| 亚洲日本在线看| 日韩高清在线电影| 视频一区在线视频| 精品在线免费视频| 91视频国产观看| 欧美午夜精品久久久久久孕妇| 欧美亚洲国产一区二区三区| 日韩欧美一区电影| 国产精品欧美综合在线| 洋洋成人永久网站入口| 亚洲电影你懂得| 成人性生交大合| 欧美高清一级片在线| 久久久久久久久久久黄色| 亚洲精品高清视频在线观看| 精品一区二区三区视频在线观看| 成人国产精品免费观看动漫| 欧美在线一二三| 国产精品嫩草99a| 免费在线一区观看| 91精品办公室少妇高潮对白| 久久综合久久鬼色中文字| 亚洲图片欧美色图| 国内精品伊人久久久久av影院| 91丨九色丨国产丨porny| 欧美一区二区三区四区高清 | 国产欧美日本一区视频| 爽好久久久欧美精品| 色综合久久综合网欧美综合网| 欧美xingq一区二区| 91蝌蚪porny九色| 成人福利电影精品一区二区在线观看 | 精品1区2区3区| 日韩影院免费视频| 一区二区三区色| xf在线a精品一区二区视频网站| 日日夜夜精品视频免费| 91精品综合久久久久久| 亚洲国产wwwccc36天堂| 91福利在线观看| 亚洲成人黄色小说| 欧美体内she精高潮| 亚瑟在线精品视频| 欧美性生活久久| 欧美狂野另类xxxxoooo| 日本在线不卡一区| 久久影院午夜片一区| 久久精品久久综合| 精品国产伦一区二区三区观看体验 | 91一区二区三区在线观看| 亚洲欧美福利一区二区| 欧美在线三级电影| 蜜臀av在线播放一区二区三区 | 国产成人啪免费观看软件| 91在线视频观看| 欧美精品v国产精品v日韩精品| 久久久99久久| 久久疯狂做爰流白浆xx| 成人亚洲一区二区一| 欧美日韩国产一级片| 这里是久久伊人| 久久精品人人爽人人爽| 色乱码一区二区三区88| 欧美电视剧在线看免费| 亚洲蜜臀av乱码久久精品| 日本在线不卡视频一二三区| 成人国产一区二区三区精品| 5566中文字幕一区二区电影| 亚洲欧洲日本在线| 欧美另类变人与禽xxxxx| 国产精品家庭影院| 九九久久精品视频| 亚洲精品伦理在线| 激情综合五月天| 亚洲欧洲无码一区二区三区| 亚洲精品一区在线观看| 亚洲成人精品一区| 97se亚洲国产综合在线| 久久你懂得1024| 免费人成在线不卡| 在线观看成人小视频| 亚洲日本免费电影| 日韩欧美高清一区| 亚洲mv在线观看| 欧美系列一区二区| 中文字幕亚洲区| 国产传媒欧美日韩成人| 精品国产乱码久久久久久影片| 免费一级片91| 日韩一区二区视频在线观看| 亚洲国产日日夜夜| 91福利小视频| 色婷婷狠狠综合| 国产精品久久久久天堂|