|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.json.JSONObject
edu.umd.cloud9.io.JSONObjectWritable
public class JSONObjectWritable
Writable representing a JSON Object.
| Field Summary |
|---|
| Fields inherited from class org.json.JSONObject |
|---|
NULL |
| Constructor Summary | |
|---|---|
JSONObjectWritable()
Creates an empty JSONWritableObject. |
|
JSONObjectWritable(String s)
Creates a JSONWritableObject with an initial value. |
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
getBooleanUnchecked(String key)
|
double |
getDoubleUnchecked(String key)
|
int |
getIntUnchecked(String key)
|
long |
getLongUnchecked(String key)
|
String |
getStringUnchecked(String key)
|
void |
readFields(DataInput in)
Deserializes the JSON object. |
void |
readJSONObject(String s)
Deserializes a JSON object from a string representation. |
void |
write(DataOutput out)
Serializes this JSON object. |
| Methods inherited from class org.json.JSONObject |
|---|
accumulate, append, doubleToString, get, getBoolean, getDouble, getInt, getJSONArray, getJSONObject, getLong, getNames, getNames, getString, has, isNull, keys, length, names, numberToString, opt, optBoolean, optBoolean, optDouble, optDouble, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optString, optString, put, put, put, put, put, put, put, putOpt, quote, remove, sortedKeys, toJSONArray, toString, toString, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JSONObjectWritable()
public JSONObjectWritable(String s)
throws JSONException
JSONException| Method Detail |
|---|
public void readFields(DataInput in)
throws IOException
readFields in interface Writablein - source for raw byte representation
IOExceptionpublic void readJSONObject(String s)
s - string representation of the JSON object
public void write(DataOutput out)
throws IOException
write in interface Writableout - where to write the raw byte representation
IOException
public boolean getBooleanUnchecked(String key)
throws JSONException
JSONException
public double getDoubleUnchecked(String key)
throws JSONException
JSONException
public int getIntUnchecked(String key)
throws JSONException
JSONException
public long getLongUnchecked(String key)
throws JSONException
JSONException
public String getStringUnchecked(String key)
throws JSONException
JSONExceptionpublic void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||