com.liferay.portal.json
Class JSONArrayImpl
java.lang.Object
com.liferay.portal.json.JSONArrayImpl
- All Implemented Interfaces:
- JSONArray, JSONSerializable, Externalizable, Serializable, Iterable
public class JSONArrayImpl
- extends Object
- implements JSONArray
- See Also:
- Serialized Form
JSONArrayImpl
public JSONArrayImpl()
JSONArrayImpl
public JSONArrayImpl(org.json.JSONArray jsonArray)
JSONArrayImpl
public JSONArrayImpl(String json)
throws JSONException
- Throws:
JSONException
get
public Object get(int index)
- Specified by:
get in interface JSONArray
getBoolean
public boolean getBoolean(int index)
- Specified by:
getBoolean in interface JSONArray
getDouble
public double getDouble(int index)
- Specified by:
getDouble in interface JSONArray
getInt
public int getInt(int index)
- Specified by:
getInt in interface JSONArray
getJSONArray
public org.json.JSONArray getJSONArray()
getJSONArray
public JSONArray getJSONArray(int index)
- Specified by:
getJSONArray in interface JSONArray
getJSONObject
public JSONObject getJSONObject(int index)
- Specified by:
getJSONObject in interface JSONArray
getLong
public long getLong(int index)
- Specified by:
getLong in interface JSONArray
getString
public String getString(int index)
- Specified by:
getString in interface JSONArray
isNull
public boolean isNull(int index)
- Specified by:
isNull in interface JSONArray
iterator
public Iterator<Object> iterator()
- Specified by:
iterator in interface Iterable
join
public String join(String separator)
throws JSONException
- Specified by:
join in interface JSONArray
- Throws:
JSONException
length
public int length()
- Specified by:
length in interface JSONArray
put
public JSONArray put(boolean value)
- Specified by:
put in interface JSONArray
put
public JSONArray put(double value)
- Specified by:
put in interface JSONArray
put
public JSONArray put(int value)
- Specified by:
put in interface JSONArray
put
public JSONArray put(JSONArray value)
- Specified by:
put in interface JSONArray
put
public JSONArray put(JSONObject value)
- Specified by:
put in interface JSONArray
put
public JSONArray put(long value)
- Specified by:
put in interface JSONArray
put
public JSONArray put(Object value)
- Specified by:
put in interface JSONArray
put
public JSONArray put(String value)
- Specified by:
put in interface JSONArray
readExternal
public void readExternal(ObjectInput objectInput)
throws IOException
- Specified by:
readExternal in interface Externalizable
- Throws:
IOException
toJSONString
public String toJSONString()
- Specified by:
toJSONString in interface JSONSerializable
toString
public String toString()
- Specified by:
toString in interface JSONArray- Overrides:
toString in class Object
toString
public String toString(int indentFactor)
throws JSONException
- Specified by:
toString in interface JSONArray
- Throws:
JSONException
write
public Writer write(Writer writer)
throws JSONException
- Specified by:
write in interface JSONArray
- Throws:
JSONException
writeExternal
public void writeExternal(ObjectOutput objectOutput)
throws IOException
- Specified by:
writeExternal in interface Externalizable
- Throws:
IOException