|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.json.Cookie
public class Cookie
Convert a web browser cookie specification to a JSONObject and back. JSON and Cookies are both notations for name/value pairs.
コンストラクタの概要 | |
---|---|
Cookie()
|
メソッドの概要 | |
---|---|
static String |
escape(String string)
Produce a copy of a string in which the characters '+', '%', '=', ';' and control characters are replaced with "%hh". |
static JSONObject |
toJSONObject(String string)
Convert a cookie specification string into a JSONObject. |
static String |
toString(JSONObject o)
Convert a JSONObject into a cookie specification string. |
static String |
unescape(String s)
Convert % hh sequences to single characters, and
convert plus to space. |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public Cookie()
メソッドの詳細 |
---|
public static String escape(String string)
string
- The source string.
public static JSONObject toJSONObject(String string) throws JSONException
string
- The cookie specification string.
JSONException
public static String toString(JSONObject o) throws JSONException
o
- A JSONObject
JSONException
public static String unescape(String s)
%
hh sequences to single characters, and
convert plus to space.
s
- A string that may contain
+
(plus) and
%
hh sequences.
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |