|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectcom.qq.connect.utils.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 java.lang.String |
escape(java.lang.String string)
Produce a copy of a string in which the characters '+', '%', '=', ';' and control characters are replaced with "%hh". |
static JSONObject |
toJSONObject(java.lang.String string)
Convert a cookie specification string into a JSONObject. |
static java.lang.String |
toString(JSONObject o)
Convert a JSONObject into a cookie specification string. |
static java.lang.String |
unescape(java.lang.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 java.lang.String escape(java.lang.String string)
string
- The source string.
public static JSONObject toJSONObject(java.lang.String string) throws JSONException
string
- The cookie specification string.
JSONException
public static java.lang.String toString(JSONObject o) throws JSONException
o
- A JSONObject
JSONException
public static java.lang.String unescape(java.lang.String s)
%
hh sequences to single characters, and
convert plus to space.
s
- A string that may contain
+
(plus) and
%
hh sequences.
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |