org.json
クラス CookieList

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

public class CookieList
extends Object

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

バージョン:
2008-09-18
作成者:
JSON.org

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

コンストラクタの詳細

CookieList

public CookieList()
メソッドの詳細

toJSONObject

public static JSONObject toJSONObject(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 String toString(JSONObject o)
                       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".

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


Copyright (C) 2006-2012 LittleSoft Corporation. All Rights Reserved.