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

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

?? xml.java

?? sourcode about ajaxdojojson
?? JAVA
字號:
package org.json;/*Copyright (c) 2002 JSON.orgPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.The Software shall be used for Good, not Evil.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.*/import java.util.Iterator;/** * This provides static methods to convert an XML text into a JSONObject, * and to covert a JSONObject into an XML text. * @author JSON.org * @version 2 */public class XML {    /** The Character '&'. */    public static final Character AMP   = new Character('&');    /** The Character '''. */    public static final Character APOS  = new Character('\'');    /** The Character '!'. */    public static final Character BANG  = new Character('!');    /** The Character '='. */    public static final Character EQ    = new Character('=');    /** The Character '>'. */    public static final Character GT    = new Character('>');    /** The Character '<'. */    public static final Character LT    = new Character('<');    /** The Character '?'. */    public static final Character QUEST = new Character('?');    /** The Character '"'. */    public static final Character QUOT  = new Character('"');    /** The Character '/'. */    public static final Character SLASH = new Character('/');    /**     * Replace special characters with XML escapes:     * <pre>     * &amp; <small>(ampersand)</small> is replaced by &amp;amp;     * &lt; <small>(less than)</small> is replaced by &amp;lt;     * &gt; <small>(greater than)</small> is replaced by &amp;gt;     * &quot; <small>(double quote)</small> is replaced by &amp;quot;     * </pre>     * @param string The string to be escaped.     * @return The escaped string.     */    public static String escape(String string) {        return string            .replaceAll("&", "&amp;")            .replaceAll("<", "&lt;")            .replaceAll(">", "&gt;")            .replaceAll("\"", "&quot;");    }    /**     * Scan the content following the named tag, attaching it to the context.     * @param x       The XMLTokener containing the source string.     * @param context The JSONObject that will include the new material.     * @param name    The tag name.     * @return true if the close tag is processed.     * @throws JSONException     */    private static boolean parse(XMLTokener x, JSONObject context,                                 String name) throws JSONException {        char       c;        int        i;        String     n;        JSONObject o = null;        String     s;        Object     t;// Test for and skip past these forms://      <!-- ... -->//      <!   ...   >//      <![  ... ]]>//      <?   ...  ?>// Report errors for these forms://      <>//      <=//      <<        t = x.nextToken();// <!        if (t == BANG) {            c = x.next();            if (c == '-') {                if (x.next() == '-') {                    x.skipPast("-->");                    return false;                }                x.back();            } else if (c == '[') {				t = x.nextToken();				if (t.equals("CDATA")) {					if (x.next() == '[') {						s = x.nextCDATA();	                    if (s.length() > 0) {							context.accumulate("content", s);	                    }						                	return false;					}				}				throw x.syntaxError("Expected 'CDATA['");            }            i = 1;            do {                t = x.nextMeta();                if (t == null) {                    throw x.syntaxError("Missing '>' after '<!'.");                } else if (t == LT) {                    i += 1;                } else if (t == GT) {                    i -= 1;                }            } while (i > 0);            return false;        } else if (t == QUEST) {// <?            x.skipPast("?>");            return false;        } else if (t == SLASH) {// Close tag </            if (name == null || !x.nextToken().equals(name)) {                throw x.syntaxError("Mismatched close tag");            }            if (x.nextToken() != GT) {                throw x.syntaxError("Misshaped close tag");            }            return true;        } else if (t instanceof Character) {            throw x.syntaxError("Misshaped tag");// Open tag <        } else {            n = (String)t;            t = null;            o = new JSONObject();            for (;;) {                if (t == null) {                    t = x.nextToken();                }// attribute = value                if (t instanceof String) {                    s = (String)t;                    t = x.nextToken();                    if (t == EQ) {                        t = x.nextToken();                        if (!(t instanceof String)) {                            throw x.syntaxError("Missing value");                        }                        o.accumulate(s, t);                        t = null;                    } else {                        o.accumulate(s, Boolean.TRUE);                    }// Empty tag <.../>                } else if (t == SLASH) {                    if (x.nextToken() != GT) {                        throw x.syntaxError("Misshaped tag");                    }                    if (o.length() == 0) {                        context.accumulate(n, Boolean.TRUE);                    } else {                        context.accumulate(n, o);                    }                    return false;// Content, between <...> and </...>                } else if (t == GT) {                    for (;;) {                        t = x.nextContent();                        if (t == null) {                            if (name != null) {                                throw x.syntaxError("Unclosed tag " + name);                            }                            return false;                        } else if (t instanceof String) {                            s = (String)t;                            if (s.length() > 0) {                                o.accumulate("content", s);                            }// Nested element                        } else if (t == LT) {                            if (parse(x, o, n)) {                                if (o.length() == 0) {                                    context.accumulate(n, Boolean.TRUE);                                } else if (o.length() == 1 &&                                           o.opt("content") != null) {                                    context.accumulate(n, o.opt("content"));                                } else {                                    context.accumulate(n, o);                                }                                return false;                            }                        }                    }                } else {                    throw x.syntaxError("Misshaped tag");                }            }        }    }    /**     * Convert a well-formed (but not necessarily valid) XML string into a     * JSONObject. Some information may be lost in this transformation     * because JSON is a data format and XML is a document format. XML uses     * elements, attributes, and content text, while JSON uses unordered     * collections of name/value pairs and arrays of values. JSON does not     * does not like to distinguish between elements and attributes.     * Sequences of similar elements are represented as JSONArrays. Content     * text may be placed in a "content" member. Comments, prologs, DTDs, and     * <code>&lt;[ [ ]]></code> are ignored.     * @param string The source string.     * @return A JSONObject containing the structured data from the XML string.     * @throws JSONException     */    public static JSONObject toJSONObject(String string) throws JSONException {        JSONObject o = new JSONObject();        XMLTokener x = new XMLTokener(string);        while (x.more()) {            x.skipPast("<");            parse(x, o, null);        }        return o;    }    /**     * Convert a JSONObject into a well-formed, element-normal XML string.     * @param o A JSONObject.     * @return  A string.     * @throws  JSONException     */    public static String toString(Object o) throws JSONException {        return toString(o, null);    }    /**     * Convert a JSONObject into a well-formed, element-normal XML string.     * @param o A JSONObject.     * @param tagName The optional name of the enclosing tag.     * @return A string.     * @throws JSONException     */    public static String toString(Object o, String tagName) 			throws JSONException {        StringBuffer b = new StringBuffer();         int          i;        JSONArray    ja;        JSONObject   jo;        String       k;        Iterator     keys;        int          len;        String       s;        Object       v;        if (o instanceof JSONObject) {// Emit <tagName>            if (tagName != null) {                b.append('<');                b.append(tagName);				b.append('>');            }// Loop thru the keys.             jo = (JSONObject)o;            keys = jo.keys();            while (keys.hasNext()) {                k = keys.next().toString();                v = jo.get(k);                if (v instanceof String) {                    s = (String)v;                } else {                    s = null;                }// Emit content in body	            if (k.equals("content")) {					if (v instanceof JSONArray) {	                    ja = (JSONArray)v;	                    len = ja.length();	                    for (i = 0; i < len; i += 1) {							if (i > 0) {								b.append('\n');							}	                        b.append(escape(ja.get(i).toString()));	                    }					} else {	                    b.append(escape(v.toString()));					}// Emit an array of similar keys                } else if (v instanceof JSONArray) {                    ja = (JSONArray)v;                    len = ja.length();                    for (i = 0; i < len; i += 1) {                        b.append(toString(ja.get(i), k));                    }                } else if (v.equals(Boolean.TRUE)) {					b.append('<');					b.append(k);					b.append("/>");// Emit a new tag <k>	            } else {                    b.append(toString(v, k));                }            }            if (tagName != null) {// Emit the </tagname> close tag                b.append("</");                b.append(tagName);                b.append('>');            }            return b.toString();// XML does not have good support for arrays. If an array appears in a place// where XML is lacking, synthesize an <array> element.        } else if (o instanceof JSONArray) {            ja = (JSONArray)o;            len = ja.length();            for (i = 0; i < len; ++i) {                b.append(toString(                    ja.opt(i), (tagName == null) ? "array" : tagName));            }            return b.toString();        } else {            s = (o == null) ? "null" : escape(o.toString());            return (tagName == null) ?                "\"" + s + "\"" :                "<" + tagName + ">" + s + "</" + tagName + ">";        }    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
92国产精品观看| 丁香婷婷综合激情五月色| 91蝌蚪porny成人天涯| 中文字幕一区二区三区蜜月| caoporn国产精品| 亚洲男人的天堂在线aⅴ视频| 日本韩国精品一区二区在线观看| 综合分类小说区另类春色亚洲小说欧美| caoporn国产精品| 亚洲摸摸操操av| 欧美一区二区三区性视频| 精品一区二区三区影院在线午夜 | 九色|91porny| 久久亚洲精品国产精品紫薇| 丁香亚洲综合激情啪啪综合| 亚洲精品高清在线观看| 欧美久久久久久蜜桃| 久久69国产一区二区蜜臀| 国产精品视频麻豆| 欧美专区在线观看一区| 久久99久久精品| 中文字幕一区二区三| 欧美日本高清视频在线观看| 国产美女精品人人做人人爽| 亚洲日本免费电影| 欧美一三区三区四区免费在线看 | 欧美在线999| 看电视剧不卡顿的网站| 中文字幕一区不卡| 制服丝袜日韩国产| av电影一区二区| 日日夜夜一区二区| 亚洲国产精品精华液2区45| 在线免费观看成人短视频| 国产在线视频一区二区| 一区二区三区鲁丝不卡| 日韩欧美中文一区| 欧美自拍偷拍午夜视频| 国产精品夜夜嗨| 亚洲成人精品一区二区| 中文一区在线播放| 欧美一区二区三区播放老司机| 成人黄色软件下载| 久久99精品久久久久久动态图| 国产精品自在在线| 香蕉乱码成人久久天堂爱免费| 中文字幕欧美国产| 日韩亚洲欧美成人一区| 欧美午夜理伦三级在线观看| 成人午夜av电影| 久草精品在线观看| 丝袜美腿亚洲综合| 一区二区三区不卡在线观看 | 中文字幕一区在线| 精品久久久久久久久久久久久久久久久 | 精品久久久三级丝袜| 欧美日韩一区不卡| 91香蕉国产在线观看软件| 国产成人亚洲综合a∨婷婷图片| 日本欧美肥老太交大片| 亚洲成人综合在线| 一区二区在线观看免费视频播放| 欧美激情一区三区| 久久综合色天天久久综合图片| 欧美精品1区2区3区| 日本伦理一区二区| 一本色道亚洲精品aⅴ| 粉嫩嫩av羞羞动漫久久久| 国产乱码精品一区二区三区av | 欧美日韩在线播放三区四区| 99国产精品久久久久| 国产精品亚洲一区二区三区在线 | 亚洲午夜视频在线观看| 一区二区三区日韩欧美| 亚洲激情自拍偷拍| 亚洲人xxxx| 一区二区三区日韩精品| 亚洲免费观看视频| 一区二区三区免费网站| 亚洲最大成人综合| 亚洲第一主播视频| 亚洲国产成人tv| 水野朝阳av一区二区三区| 午夜电影一区二区三区| 日韩专区中文字幕一区二区| 美女一区二区视频| 欧美亚洲一区二区在线观看| 91黄色在线观看| 精品视频色一区| 日韩一级免费观看| 久久综合久久鬼色中文字| 久久天堂av综合合色蜜桃网| 日本一二三不卡| 亚洲精品久久久蜜桃| 亚洲一区欧美一区| 欧美aaaaaa午夜精品| 久久国产精品区| 成人免费av网站| 91官网在线免费观看| 欧美高清视频在线高清观看mv色露露十八 | 国产日韩视频一区二区三区| 国产精品卡一卡二| 亚洲一区日韩精品中文字幕| 日韩av中文在线观看| 国产另类ts人妖一区二区| aaa欧美色吧激情视频| 精品视频在线视频| 久久综合999| 亚洲人精品午夜| 蜜臀久久99精品久久久久久9| 国产成人精品一区二区三区四区 | 一区二区三区精品视频| 奇米精品一区二区三区在线观看一| 久久精品国产久精国产爱| eeuss影院一区二区三区| 欧美三级日韩在线| 久久综合九色综合欧美98| 亚洲欧美电影一区二区| 裸体一区二区三区| 97久久久精品综合88久久| 国产精品美女久久久久aⅴ | 日韩电影一二三区| 国产超碰在线一区| 91麻豆精品国产91久久久久久| 精品国产一区二区精华| 亚洲欧美韩国综合色| 久久精品99久久久| 在线看国产日韩| 国产日韩欧美一区二区三区乱码 | 伦理电影国产精品| 91国模大尺度私拍在线视频| 欧美成人精品二区三区99精品| 亚洲精选视频免费看| 国内精品自线一区二区三区视频| 91麻豆高清视频| 欧美国产精品专区| 蜜臀av一区二区在线观看| 色婷婷精品久久二区二区蜜臂av | 欧美一区二区三区播放老司机| 国产精品理伦片| 韩国av一区二区三区四区| 欧美色成人综合| 亚洲免费色视频| 国产成人av电影在线观看| 日韩欧美精品在线| 婷婷丁香激情综合| 色八戒一区二区三区| 国产精品美女久久久久aⅴ国产馆| 麻豆精品精品国产自在97香蕉| 欧美亚洲图片小说| 亚洲免费色视频| thepron国产精品| 久久久777精品电影网影网 | 亚洲女同一区二区| 成人毛片视频在线观看| 青青国产91久久久久久| 在线亚洲一区二区| 1区2区3区欧美| 成人激情小说网站| 国产精品污污网站在线观看 | 亚洲国产日韩a在线播放| 91蜜桃网址入口| 亚洲人成精品久久久久久| 懂色一区二区三区免费观看| 久久综合五月天婷婷伊人| 韩国毛片一区二区三区| 精品动漫一区二区三区在线观看| 日韩电影在线免费| 欧美一区二区三区视频免费播放| 天堂av在线一区| 777久久久精品| 日本在线不卡一区| 日韩一区二区三区免费看| 免费成人av资源网| 欧美变态tickling挠脚心| 久久电影网站中文字幕| 精品久久人人做人人爰| 极品少妇一区二区三区精品视频 | 国产午夜亚洲精品理论片色戒| 激情文学综合丁香| 久久精品亚洲国产奇米99| 国产不卡视频一区二区三区| 国产精品日产欧美久久久久| 成人av电影在线| 亚洲精品国产高清久久伦理二区| 欧洲精品一区二区三区在线观看| 亚洲国产美国国产综合一区二区| 欧美精品日韩一区| 九一久久久久久| 亚洲欧洲日韩综合一区二区| 欧美中文字幕亚洲一区二区va在线 | 久久新电视剧免费观看| 国产高清精品久久久久| 一区二区中文视频| 色综合 综合色| 日本色综合中文字幕| 日本一区二区综合亚洲| 99久久777色| 日韩精品久久理论片| 国产欧美1区2区3区|