Constructor and Description |
---|
JSONEncoding() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMime() |
java.lang.String |
getMimeSimpleData(java.lang.Object obj)
Method called if isSimpleValue
|
int |
getValueType() |
boolean |
isComplexValue() |
boolean |
isInstanceOf(java.lang.Object test)
Returns true for JSONObject or Java Object.
|
boolean |
isSimpleValue() |
java.lang.Object |
readBytes(byte[] sourceData)
Instantiates a JSONObject.
|
java.lang.Object |
readMimeString(java.lang.String nval)
Instantiates a JSONObject.
|
byte[] |
writeBytes(java.lang.Object toSerialize)
Converts either JSONObject or Java Object to JSON.
|
public int getValueType()
getValueType
in interface IEncoding
public boolean isSimpleValue()
isSimpleValue
in interface IEncoding
public boolean isComplexValue()
isComplexValue
in interface IEncoding
public java.lang.String getMimeSimpleData(java.lang.Object obj)
IEncoding
getMimeSimpleData
in interface IEncoding
public java.lang.Object readBytes(byte[] sourceData)
public java.lang.Object readMimeString(java.lang.String nval)
readMimeString
in interface IEncoding
public boolean isInstanceOf(java.lang.Object test)
isInstanceOf
in interface IEncoding
public byte[] writeBytes(java.lang.Object toSerialize)
writeBytes
in interface IEncoding