|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.json.JSONML
public class JSONML
This provides static methods to convert an XML text into a JSONArray or JSONObject, and to covert a JSONArray or JSONObject into an XML text using the JsonML transform.
コンストラクタの概要 | |
---|---|
JSONML()
|
メソッドの概要 | |
---|---|
static JSONArray |
toJSONArray(String string)
Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform. |
static JSONArray |
toJSONArray(XMLTokener x)
Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform. |
static JSONObject |
toJSONObject(String string)
Convert a well-formed (but not necessarily valid) XML string into a JSONObject using the JsonML transform. |
static JSONObject |
toJSONObject(XMLTokener x)
Convert a well-formed (but not necessarily valid) XML string into a JSONObject using the JsonML transform. |
static String |
toString(JSONArray ja)
Reverse the JSONML transformation, making an XML text from a JSONArray. |
static String |
toString(JSONObject jo)
Reverse the JSONML transformation, making an XML text from a JSONObject. |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public JSONML()
メソッドの詳細 |
---|
public static JSONArray toJSONArray(String string) throws JSONException
<[ [ ]]>
are ignored.
string
- The source string.
JSONException
public static JSONArray toJSONArray(XMLTokener x) throws JSONException
<[ [ ]]>
are ignored.
x
- An XMLTokener.
JSONException
public static JSONObject toJSONObject(XMLTokener x) throws JSONException
<[ [ ]]>
are ignored.
x
- An XMLTokener of the XML source text.
JSONException
public static JSONObject toJSONObject(String string) throws JSONException
<[ [ ]]>
are ignored.
string
- The XML source text.
JSONException
public static String toString(JSONArray ja) throws JSONException
ja
- A JSONArray.
JSONException
public static String toString(JSONObject jo) throws JSONException
jo
- A JSONObject.
JSONException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |