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

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

?? processinginstruction.java

?? openlogic-jdom-1.1-all-src-1.zip 可以用于操作xml文件
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
    /**     * This will set a pseudo attribute with the given name and value.     * If the PI data is not already in a pseudo-attribute format, this will     * replace the existing data.     *     * @param name <code>String</code> name of pair.     * @param value <code>String</code> value for pair.     * @return <code>ProcessingInstruction</code> this PI modified.     */    public ProcessingInstruction setPseudoAttribute(String name, String value) {        String reason = Verifier.checkProcessingInstructionData(name);        if (reason != null) {            throw new IllegalDataException(name, reason);        }        reason = Verifier.checkProcessingInstructionData(value);        if (reason != null) {            throw new IllegalDataException(value, reason);        }        this.mapData.put(name, value);        this.rawData = toString(mapData);        return this;    }    /**     * This will remove the pseudo attribute with the specified name.     *     * @param name name of pseudo attribute to remove     * @return <code>boolean</code> - whether the requested     *         instruction was removed.     */    public boolean removePseudoAttribute(String name) {        if ((mapData.remove(name)) != null) {            rawData = toString(mapData);            return true;        }        return false;    }    /**     * This will convert the Map to a string representation.     *     * @param mapData <code>Map</code> PI data to convert     * @return a string representation of the Map as appropriate for a PI     */    private String toString(Map mapData) {        StringBuffer rawData = new StringBuffer();        Iterator i = mapData.keySet().iterator();        while (i.hasNext()) {            String name = (String)i.next();            String value = (String)mapData.get(name);            rawData.append(name)                   .append("=\"")                   .append(value)                   .append("\" ");        }        // Remove last space, if we did any appending        if (rawData.length() > 0) {            rawData.setLength(rawData.length() - 1);        }        return rawData.toString();    }    /**     * This will parse and load the instructions for the PI.     * This is separated to allow it to occur once and then be reused.     */    private Map parseData(String rawData) {        // The parsing here is done largely "by hand" which means the code        // gets a little tricky/messy.  The following conditions should        // now be handled correctly:        //   <?pi href="http://hi/a=b"?>        Reads OK        //   <?pi href = 'http://hi/a=b' ?>     Reads OK        //   <?pi href\t = \t'http://hi/a=b'?>  Reads OK        //   <?pi href  =  "http://hi/a=b"?>    Reads OK        //   <?pi?>                             Empty Map        //   <?pi id=22?>                       Empty Map        //   <?pi id='22?>                      Empty Map        Map data = new HashMap();        // System.out.println("rawData: " + rawData);        // The inputData variable holds the part of rawData left to parse        String inputData = rawData.trim();        // Iterate through the remaining inputData string        while (!inputData.trim().equals("")) {            //System.out.println("parseData() looking at: " + inputData);            // Search for "name =", "name=" or "name1 name2..."            String name = "";            String value = "";            int startName = 0;            char previousChar = inputData.charAt(startName);            int pos = 1;            for (; pos<inputData.length(); pos++) {                char currentChar = inputData.charAt(pos);                if (currentChar == '=') {                    name = inputData.substring(startName, pos).trim();                    // Get the boundaries on the quoted string                    // We use boundaries so we know where to start next                    int[] bounds = extractQuotedString(                                     inputData.substring(pos+1));                    // A null value means a parse error and we return empty!                    if (bounds == null) {                        return new HashMap();                    }                    value = inputData.substring(bounds[0]+pos+1,                                                bounds[1]+pos+1);                    pos += bounds[1] + 1;  // skip past value                    break;                }                else if (Character.isWhitespace(previousChar)                          && !Character.isWhitespace(currentChar)) {                    startName = pos;                }                previousChar = currentChar;            }            // Remove the first pos characters; they have been processed            inputData = inputData.substring(pos);            // System.out.println("Extracted (name, value) pair: ("            //                          + name + ", '" + value+"')");            // If both a name and a value have been found, then add            // them to the data Map            if (name.length() > 0 && value != null) {                //if (data.containsKey(name)) {                    // A repeat, that's a parse error, so return a null map                    //return new HashMap();                //}                //else {                    data.put(name, value);                //}            }        }        return data;    }    /**     * This is a helper routine, only used by parseData, to extract a     * quoted String from the input parameter, rawData. A quoted string     * can use either single or double quotes, but they must match up.     * A singly quoted string can contain an unbalanced amount of double     * quotes, or vice versa. For example, the String "JDOM's the best"     * is legal as is 'JDOM"s the best'.     *     * @param rawData the input string from which a quoted string is to     *                be extracted.     * @return the first quoted string encountered in the input data. If     *         no quoted string is found, then the empty string, "", is     *         returned.     * @see #parseData     */    private static int[] extractQuotedString(String rawData) {        // Remembers whether we're actually in a quoted string yet        boolean inQuotes = false;        // Remembers which type of quoted string we're in        char quoteChar = '"';        // Stores the position of the first character inside        //  the quoted string (i.e. the start of the return string)        int start = 0;        // Iterate through the input string looking for the start        // and end of the quoted string        for (int pos=0; pos < rawData.length(); pos++) {            char currentChar = rawData.charAt(pos);            if (currentChar=='"' || currentChar=='\'') {                if (!inQuotes) {                    // We're entering a quoted string                    quoteChar = currentChar;                    inQuotes = true;                    start = pos+1;                }                else if (quoteChar == currentChar) {                    // We're leaving a quoted string                    inQuotes = false;                    return new int[] { start, pos };                }                // Otherwise we've encountered a quote                // inside a quote, so just continue            }        }        return null;    }    /**     * This returns a <code>String</code> representation of the     * <code>ProcessingInstruction</code>, suitable for debugging. If the XML     * representation of the <code>ProcessingInstruction</code> is desired,     * {@link org.jdom.output.XMLOutputter#outputString(ProcessingInstruction)}     * should be used.     *     * @return <code>String</code> - information about the     *         <code>ProcessingInstruction</code>     */    public String toString() {        return new StringBuffer()            .append("[ProcessingInstruction: ")            .append(new org.jdom.output.XMLOutputter().outputString(this))            .append("]")            .toString();    }    /**     * This will return a clone of this <code>ProcessingInstruction</code>.     *     * @return <code>Object</code> - clone of this     * <code>ProcessingInstruction</code>.     */    public Object clone() {        ProcessingInstruction pi = (ProcessingInstruction) super.clone();        // target and rawdata are immutable and references copied by        // Object.clone()        // Create a new Map object for the clone (since Map isn't Cloneable)        if (mapData != null) {            pi.mapData = parseData(rawData);        }        return pi;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品区一区二区| 欧美经典一区二区| 99久久精品99国产精品| 激情综合一区二区三区| 久久精品国产99| 国产一区二区三区在线观看免费视频| 欧美aaaaa成人免费观看视频| 久久精品免费看| 国产又粗又猛又爽又黄91精品| 国产综合色精品一区二区三区| 久久国产精品一区二区| 国产成人午夜99999| 成人免费毛片片v| 色域天天综合网| 4438x亚洲最大成人网| 欧美电视剧免费观看| 久久精品视频一区二区三区| 国产精品午夜电影| 亚洲男女一区二区三区| 日韩一区精品字幕| 国产在线精品一区二区不卡了| 欧美在线观看一区| 不卡电影一区二区三区| 欧美系列一区二区| 精品日本一线二线三线不卡| 国产亚洲精品福利| 亚洲黄色免费网站| 久国产精品韩国三级视频| 成人影视亚洲图片在线| 91精品福利在线| 欧美精品一区二区三区蜜臀| 国产精品美女久久久久久| 午夜精品久久久久影视| 韩国av一区二区| 懂色av一区二区在线播放| 色综合一个色综合| 2024国产精品| 午夜久久久久久久久| 国产成人a级片| 欧美精品v国产精品v日韩精品| 精品精品欲导航| 一区二区三区在线视频播放| 国产精品伊人色| 8x福利精品第一导航| 国产精品国产精品国产专区不片| 日本中文字幕一区| 色婷婷av一区二区三区软件| 久久综合999| 蜜臀久久99精品久久久画质超高清| 成人午夜精品在线| 精品美女一区二区| 天天做天天摸天天爽国产一区 | 一区二区三区四区蜜桃 | 99精品久久只有精品| 91福利视频网站| 日本一区二区三区dvd视频在线| 亚洲6080在线| 91成人在线免费观看| 中文字幕巨乱亚洲| 久久国产精品99精品国产| 欧美日韩精品一区视频| 亚洲乱码中文字幕| 99久久精品免费看国产免费软件| 日韩一区和二区| 日韩国产欧美在线播放| 欧美日韩一区二区在线观看视频| 国产日韩精品一区| 国产丶欧美丶日本不卡视频| 日韩欧美www| 久久99精品久久久久| 在线播放中文一区| 日韩和欧美一区二区| 欧美另类变人与禽xxxxx| 亚洲一区免费观看| 欧美性视频一区二区三区| 一区二区三区四区在线免费观看| 91久久一区二区| 亚洲狼人国产精品| 欧美偷拍一区二区| 天天操天天综合网| 日韩视频免费观看高清完整版在线观看| 亚洲福利一二三区| 91精品一区二区三区久久久久久| 天天色 色综合| 亚洲精品在线免费观看视频| 99re6这里只有精品视频在线观看| 国产精品视频你懂的| av中文字幕一区| 亚洲精品国产一区二区精华液| 色天使色偷偷av一区二区| 亚洲高清不卡在线观看| 欧美岛国在线观看| 国产河南妇女毛片精品久久久| 国产日产欧美一区二区三区| 91一区二区三区在线观看| 亚洲成人综合视频| 欧美成人高清电影在线| 成人免费视频一区二区| 一区二区三区在线高清| 日韩免费一区二区三区在线播放| 国产精品亚洲第一| 亚洲同性gay激情无套| 4438x成人网最大色成网站| 精品亚洲porn| 亚洲四区在线观看| 日韩你懂的电影在线观看| 99久久久无码国产精品| 日本系列欧美系列| 亚洲国产成人在线| 欧美日韩免费电影| 成人精品高清在线| 日本成人在线视频网站| 国产精品久久久久久久午夜片| 欧美午夜精品久久久久久孕妇| 蜜臀av国产精品久久久久 | 三级成人在线视频| 国产精品婷婷午夜在线观看| 欧美日韩精品一区二区三区| 色爱区综合激月婷婷| 精品制服美女久久| 亚洲一级二级在线| 中文字幕色av一区二区三区| 欧美一级黄色片| 欧洲av一区二区嗯嗯嗯啊| 成人亚洲一区二区一| 美腿丝袜一区二区三区| 亚洲一区二区影院| 国产精品美女一区二区| 欧美va亚洲va| 91麻豆精品国产91久久久久久| 91香蕉视频mp4| 国产激情视频一区二区在线观看| 三级成人在线视频| 亚洲国产精品影院| 亚洲美腿欧美偷拍| 中文字幕在线一区免费| 久久天堂av综合合色蜜桃网| 日韩欧美一区电影| 欧美日韩成人在线| 欧美色区777第一页| 日本高清免费不卡视频| 丁香天五香天堂综合| 久久66热re国产| 国内精品伊人久久久久av一坑| 日本不卡123| 美女国产一区二区| 久久综合综合久久综合| 久久精品国产亚洲一区二区三区 | 精品国产乱码久久久久久牛牛| 欧美日韩一区三区| 欧美日韩精品专区| 欧美丰满少妇xxxxx高潮对白| 欧美色手机在线观看| 欧美在线一二三| 91成人免费在线视频| 91国偷自产一区二区三区成为亚洲经典| eeuss影院一区二区三区 | 午夜精品久久一牛影视| 婷婷六月综合亚洲| 麻豆成人久久精品二区三区红| 日本怡春院一区二区| 美脚の诱脚舐め脚责91| 久久黄色级2电影| 国产精品91一区二区| 成人福利视频在线看| 99精品欧美一区二区三区小说 | 一区二区三区四区在线播放| 亚洲精品一二三| 香蕉久久一区二区不卡无毒影院 | 亚洲天堂久久久久久久| 亚洲综合网站在线观看| 蜜桃av一区二区| 国产91对白在线观看九色| 一道本成人在线| 91精品国产综合久久蜜臀| 国产欧美一区二区精品婷婷| 中文字幕亚洲一区二区av在线| 亚洲综合色丁香婷婷六月图片| 视频一区欧美精品| 国产精品一区二区三区乱码| 91美女在线观看| 欧美mv日韩mv亚洲| 亚洲视频一区二区在线观看| 日韩精品福利网| 床上的激情91.| 9191久久久久久久久久久| 久久先锋影音av鲁色资源| 亚洲卡通欧美制服中文| 青青草精品视频| av在线不卡网| 欧美成人综合网站| 亚洲少妇30p| 精品一区二区三区的国产在线播放 | 麻豆国产欧美一区二区三区| 成人性生交大片免费看中文网站| 99久久精品免费看| 欧美xxxx在线观看| 亚洲综合久久久久| 成人av免费网站| 久久综合狠狠综合久久激情|