yt4droid.internal.org.json
クラス CookieList

java.lang.Object
  上位を拡張 yt4droid.internal.org.json.CookieList

public class CookieList
extends java.lang.Object

Convert a web browser cookie list string to a JSONObject and back.

バージョン:
2010-12-24
作成者:
JSON.org

コンストラクタの概要
CookieList()
           
 
メソッドの概要
static JSONObject toJSONObject(java.lang.String string)
          Convert a cookie list into a JSONObject.
static java.lang.String toString(JSONObject jo)
          Convert a JSONObject into a cookie list.
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

CookieList

public CookieList()
メソッドの詳細

toJSONObject

public static JSONObject toJSONObject(java.lang.String string)
                               throws JSONException
Convert a cookie list into a JSONObject. A cookie list is a sequence of name/value pairs. The names are separated from the values by '='. The pairs are separated by ';'. The names and the values will be unescaped, possibly converting '+' and '%' sequences. To add a cookie to a cooklist, cookielistJSONObject.put(cookieJSONObject.getString("name"), cookieJSONObject.getString("value"));

パラメータ:
string - A cookie list string
戻り値:
A JSONObject
例外:
JSONException

toString

public static java.lang.String toString(JSONObject jo)
                                 throws JSONException
Convert a JSONObject into a cookie list. A cookie list is a sequence of name/value pairs. The names are separated from the values by '='. The pairs are separated by ';'. The characters '%', '+', '=', and ';' in the names and values are replaced by "%hh".

パラメータ:
jo - A JSONObject
戻り値:
A cookie list string
例外:
JSONException