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

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

?? jsonobject.java

?? 很好的json數據處理格式
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
    }    /**     * Construct a JSONObject from a source JSON text string.     * This is the most commonly used JSONObject constructor.     * @param source    A string beginning     *  with <code>{</code>&nbsp;<small>(left brace)</small> and ending     *  with <code>}</code>&nbsp;<small>(right brace)</small>.     * @exception JSONException If there is a syntax error in the source      *  string or a duplicated key.     */    public JSONObject(String source) throws JSONException {        this(new JSONTokener(source));    }    /**     * Accumulate values under a key. It is similar to the put method except     * that if there is already an object stored under the key then a     * JSONArray is stored under the key to hold all of the accumulated values.     * If there is already a JSONArray, then the new value is appended to it.     * In contrast, the put method replaces the previous value.     * @param key   A key string.     * @param value An object to be accumulated under the key.     * @return this.     * @throws JSONException If the value is an invalid number     *  or if the key is null.     */    public JSONObject accumulate(String key, Object value)            throws JSONException {        testValidity(value);        Object o = opt(key);        if (o == null) {            put(key, value instanceof JSONArray ?                    new JSONArray().put(value) :                    value);        } else if (o instanceof JSONArray) {            ((JSONArray)o).put(value);        } else {            put(key, new JSONArray().put(o).put(value));        }        return this;    }    /**     * Append values to the array under a key. If the key does not exist in the     * JSONObject, then the key is put in the JSONObject with its value being a     * JSONArray containing the value parameter. If the key was already     * associated with a JSONArray, then the value parameter is appended to it.     * @param key   A key string.     * @param value An object to be accumulated under the key.     * @return this.     * @throws JSONException If the key is null or if the current value     *  associated with the key is not a JSONArray.     */    public JSONObject append(String key, Object value)            throws JSONException {        testValidity(value);        Object o = opt(key);        if (o == null) {            put(key, new JSONArray().put(value));        } else if (o instanceof JSONArray) {            put(key, ((JSONArray)o).put(value));        } else {            throw new JSONException("JSONObject[" + key +                    "] is not a JSONArray.");        }        return this;    }    /**     * Produce a string from a double. The string "null" will be returned if     * the number is not finite.     * @param  d A double.     * @return A String.     */    static public String doubleToString(double d) {        if (Double.isInfinite(d) || Double.isNaN(d)) {            return "null";        }// Shave off trailing zeros and decimal point, if possible.        String s = Double.toString(d);        if (s.indexOf('.') > 0 && s.indexOf('e') < 0 && s.indexOf('E') < 0) {            while (s.endsWith("0")) {                s = s.substring(0, s.length() - 1);            }            if (s.endsWith(".")) {                s = s.substring(0, s.length() - 1);            }        }        return s;    }    /**     * Get the value object associated with a key.     *     * @param key   A key string.     * @return      The object associated with the key.     * @throws   JSONException if the key is not found.     */    public Object get(String key) throws JSONException {        Object o = opt(key);        if (o == null) {            throw new JSONException("JSONObject[" + quote(key) +                    "] not found.");        }        return o;    }    /**     * Get the boolean value associated with a key.     *     * @param key   A key string.     * @return      The truth.     * @throws   JSONException     *  if the value is not a Boolean or the String "true" or "false".     */    public boolean getBoolean(String key) throws JSONException {        Object o = get(key);        if (o.equals(Boolean.FALSE) ||                (o instanceof String &&                ((String)o).equalsIgnoreCase("false"))) {            return false;        } else if (o.equals(Boolean.TRUE) ||                (o instanceof String &&                ((String)o).equalsIgnoreCase("true"))) {            return true;        }        throw new JSONException("JSONObject[" + quote(key) +                "] is not a Boolean.");    }    /**     * Get the double value associated with a key.     * @param key   A key string.     * @return      The numeric value.     * @throws JSONException if the key is not found or     *  if the value is not a Number object and cannot be converted to a number.     */    public double getDouble(String key) throws JSONException {        Object o = get(key);        try {            return o instanceof Number ?                ((Number)o).doubleValue() :                Double.valueOf((String)o).doubleValue();        } catch (Exception e) {            throw new JSONException("JSONObject[" + quote(key) +                "] is not a number.");        }    }    /**     * Get the int value associated with a key. If the number value is too     * large for an int, it will be clipped.     *     * @param key   A key string.     * @return      The integer value.     * @throws   JSONException if the key is not found or if the value cannot     *  be converted to an integer.     */    public int getInt(String key) throws JSONException {        Object o = get(key);        return o instanceof Number ?                ((Number)o).intValue() : (int)getDouble(key);    }    /**     * Get the JSONArray value associated with a key.     *     * @param key   A key string.     * @return      A JSONArray which is the value.     * @throws   JSONException if the key is not found or     *  if the value is not a JSONArray.     */    public JSONArray getJSONArray(String key) throws JSONException {        Object o = get(key);        if (o instanceof JSONArray) {            return (JSONArray)o;        }        throw new JSONException("JSONObject[" + quote(key) +                "] is not a JSONArray.");    }    /**     * Get the JSONObject value associated with a key.     *     * @param key   A key string.     * @return      A JSONObject which is the value.     * @throws   JSONException if the key is not found or     *  if the value is not a JSONObject.     */    public JSONObject getJSONObject(String key) throws JSONException {        Object o = get(key);        if (o instanceof JSONObject) {            return (JSONObject)o;        }        throw new JSONException("JSONObject[" + quote(key) +                "] is not a JSONObject.");    }    /**     * Get the long value associated with a key. If the number value is too     * long for a long, it will be clipped.     *     * @param key   A key string.     * @return      The long value.     * @throws   JSONException if the key is not found or if the value cannot     *  be converted to a long.     */    public long getLong(String key) throws JSONException {        Object o = get(key);        return o instanceof Number ?                ((Number)o).longValue() : (long)getDouble(key);    }    /**     * Get an array of field names from a JSONObject.     *     * @return An array of field names, or null if there are no names.     */    public static String[] getNames(JSONObject jo) {    	int length = jo.length();    	if (length == 0) {    		return null;    	}    	Iterator i = jo.keys();    	String[] names = new String[length];    	int j = 0;    	while (i.hasNext()) {    		names[j] = (String)i.next();    		j += 1;    	}        return names;    }    /**     * Get an array of field names from an Object.     *     * @return An array of field names, or null if there are no names.     */    public static String[] getNames(Object object) {    	if (object == null) {    		return null;    	}    	Class klass = object.getClass();    	Field[] fields = klass.getFields();    	int length = fields.length;    	if (length == 0) {    		return null;    	}    	String[] names = new String[length];    	for (int i = 0; i < length; i += 1) {    		names[i] = fields[i].getName();    	}        return names;    }    /**     * Get the string associated with a key.     *     * @param key   A key string.     * @return      A string which is the value.     * @throws   JSONException if the key is not found.     */    public String getString(String key) throws JSONException {        return get(key).toString();    }    /**     * Determine if the JSONObject contains a specific key.     * @param key   A key string.     * @return      true if the key exists in the JSONObject.     */    public boolean has(String key) {        return this.map.containsKey(key);    }    /**     * Determine if the value associated with the key is null or if there is     *  no value.     * @param key   A key string.     * @return      true if there is no value associated with the key or if     *  the value is the JSONObject.NULL object.     */    public boolean isNull(String key) {        return JSONObject.NULL.equals(opt(key));    }    /**     * Get an enumeration of the keys of the JSONObject.     *     * @return An iterator of the keys.     */    public Iterator keys() {        return this.map.keySet().iterator();    }    /**     * Get the number of keys stored in the JSONObject.     *     * @return The number of keys in the JSONObject.     */    public int length() {        return this.map.size();    }    /**     * Produce a JSONArray containing the names of the elements of this     * JSONObject.     * @return A JSONArray containing the key strings, or null if the JSONObject     * is empty.     */    public JSONArray names() {        JSONArray ja = new JSONArray();        Iterator  keys = keys();        while (keys.hasNext()) {            ja.put(keys.next());        }        return ja.length() == 0 ? null : ja;    }    /**     * Produce a string from a Number.     * @param  n A Number     * @return A String.     * @throws JSONException If n is a non-finite number.     */    static public String numberToString(Number n)            throws JSONException {        if (n == null) {            throw new JSONException("Null pointer");        }        testValidity(n);// Shave off trailing zeros and decimal point, if possible.        String s = n.toString();        if (s.indexOf('.') > 0 && s.indexOf('e') < 0 && s.indexOf('E') < 0) {            while (s.endsWith("0")) {                s = s.substring(0, s.length() - 1);            }            if (s.endsWith(".")) {                s = s.substring(0, s.length() - 1);            }        }        return s;    }    /**     * Get an optional value associated with a key.     * @param key   A key string.     * @return      An object which is the value, or null if there is no value.     */    public Object opt(String key) {        return key == null ? null : this.map.get(key);    }    /**     * Get an optional boolean associated with a key.     * It returns false if there is no such key, or if the value is not     * Boolean.TRUE or the String "true".     *     * @param key   A key string.     * @return      The truth.     */    public boolean optBoolean(String key) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
樱桃视频在线观看一区| 国产精品一区二区不卡| 国产精品综合在线视频| 91福利精品视频| 久久综合九色综合97婷婷女人| 一区二区三区四区蜜桃| 国产精品888| 91精品国产高清一区二区三区蜜臀| 中文字幕国产一区二区| 蜜臀a∨国产成人精品| 欧美亚洲动漫制服丝袜| 国产精品福利一区| 丰满少妇在线播放bd日韩电影| 欧美一区二区三区爱爱| 亚洲五码中文字幕| 色婷婷亚洲婷婷| |精品福利一区二区三区| 极品美女销魂一区二区三区| 91精品国产综合久久精品| 亚洲线精品一区二区三区八戒| 91女神在线视频| 国产精品入口麻豆九色| 国产精品99久久久久久久vr | 免费av成人在线| 欧美视频自拍偷拍| 亚洲一区二区三区美女| 欧美这里有精品| 一个色综合网站| 欧美主播一区二区三区美女| 亚洲一卡二卡三卡四卡五卡| 一本大道av一区二区在线播放| 自拍偷拍国产亚洲| 色婷婷综合久久久久中文| 亚洲精选视频免费看| 91视频免费播放| 亚洲男人的天堂网| 欧美私模裸体表演在线观看| 亚洲第一二三四区| 日韩欧美久久久| 国内外精品视频| 国产欧美日产一区| av亚洲精华国产精华| 一区二区三区四区乱视频| 精品1区2区3区| 免费观看91视频大全| 久久久精品日韩欧美| a级高清视频欧美日韩| 亚洲自拍都市欧美小说| 7777精品久久久大香线蕉| 精品一区二区免费视频| 欧美高清在线视频| 欧洲av一区二区嗯嗯嗯啊| 午夜激情综合网| 久久久www成人免费无遮挡大片 | 奇米影视一区二区三区| 久久无码av三级| 91免费看视频| 蜜臀99久久精品久久久久久软件| 国产日韩精品一区| 色老综合老女人久久久| 日韩成人伦理电影在线观看| 久久精品亚洲精品国产欧美| 91福利在线观看| 极品美女销魂一区二区三区| 亚洲三级在线免费| 欧美一区二区三区啪啪| 国产成人av电影在线| 亚洲不卡一区二区三区| 中文字幕av一区 二区| 欧美巨大另类极品videosbest | 在线亚洲一区观看| 久久福利资源站| 一区二区三区在线播放| 久久综合色8888| 在线观看日韩电影| 大胆欧美人体老妇| 日本aⅴ精品一区二区三区| 国产精品美女久久福利网站| 制服丝袜亚洲播放| 97se亚洲国产综合自在线| 美女免费视频一区二区| 亚洲精品久久久久久国产精华液| 精品国产91洋老外米糕| 欧美在线观看18| av电影天堂一区二区在线观看| 日本女优在线视频一区二区| 亚洲男同性视频| 国产亚洲精品bt天堂精选| 91精品国产一区二区三区| 91一区在线观看| 国产成人午夜精品影院观看视频| 日本欧美肥老太交大片| 亚洲一区二区三区美女| 亚洲欧美日韩在线播放| 国产欧美精品日韩区二区麻豆天美| 日韩欧美中文字幕制服| 欧美日本精品一区二区三区| 色悠悠久久综合| 成人av在线播放网站| 国产宾馆实践打屁股91| 国产自产高清不卡| 国产中文字幕精品| 美女视频网站久久| 日韩精品电影在线| 婷婷综合另类小说色区| 婷婷开心激情综合| 日韩二区在线观看| 日韩国产一二三区| 日日夜夜免费精品| 天天免费综合色| 图片区小说区国产精品视频| 五月天精品一区二区三区| 三级欧美在线一区| 日本不卡视频一二三区| 日本不卡免费在线视频| 久久超碰97人人做人人爱| 看电影不卡的网站| 国产原创一区二区| 粉嫩蜜臀av国产精品网站| 成人激情综合网站| 91免费看`日韩一区二区| 色综合一区二区| 欧美三级日韩在线| 欧美一区二区日韩| 亚洲精品一区二区在线观看| 久久精品水蜜桃av综合天堂| 国产视频一区二区在线观看| 中文字幕在线不卡| 亚洲福利国产精品| 另类小说色综合网站| 成人综合日日夜夜| 日本高清免费不卡视频| 欧美性一区二区| 欧美成人性福生活免费看| 久久久精品国产免大香伊| 亚洲色欲色欲www| 五月综合激情婷婷六月色窝| 九九九精品视频| av成人老司机| 欧美精品久久99久久在免费线 | 国产精品一二三区在线| av一本久道久久综合久久鬼色| 欧美日韩一级片在线观看| 精品国产成人在线影院| √…a在线天堂一区| 日韩黄色在线观看| 国产.精品.日韩.另类.中文.在线.播放| www.日韩av| 51久久夜色精品国产麻豆| 国产视频亚洲色图| 亚洲午夜精品一区二区三区他趣| 国产一区欧美日韩| 欧美三级在线播放| 中文字幕第一区第二区| 午夜精品福利一区二区蜜股av| 国产成人在线视频网站| 欧美日韩国产美女| 亚洲欧洲av色图| 激情五月激情综合网| 色av成人天堂桃色av| 久久精品日产第一区二区三区高清版 | 中文字幕第一区第二区| 日韩电影在线观看网站| 成人app下载| 精品久久一区二区三区| 亚洲国产精品一区二区www| 国产成a人亚洲精品| 日韩一区二区精品葵司在线| 一区二区三区精品久久久| 国产精品中文字幕日韩精品| 在线观看91精品国产麻豆| 亚洲欧洲精品天堂一级| 国产成人免费网站| 日韩一区二区三区免费观看 | 亚洲欧洲日韩一区二区三区| 麻豆91精品视频| 欧美日韩成人综合天天影院| 国产精品乱人伦一区二区| 久久精品国产亚洲5555| 777a∨成人精品桃花网| 亚洲曰韩产成在线| 91天堂素人约啪| 中文字幕av资源一区| 国产成人在线免费| 久久久精品影视| 国产九色sp调教91| 久久久777精品电影网影网| 老司机精品视频在线| 91精品欧美一区二区三区综合在| 樱桃视频在线观看一区| 色香蕉成人二区免费| 亚洲欧美色综合| 色综合久久久久久久久| 综合欧美一区二区三区| 96av麻豆蜜桃一区二区| 亚洲伦在线观看| 在线亚洲高清视频| 亚欧色一区w666天堂| 欧美精品99久久久**| 日本不卡一区二区三区|