public interface IBoxJSONParser
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convertBoxObjectToJSONString(java.lang.Object object)
Convert the object into String.
|
java.lang.String |
convertBoxObjectToJSONStringQuietly(java.lang.Object object)
Convert the object into String.
|
<T> T |
parseIntoBoxObject(java.io.InputStream inputStream,
java.lang.Class<T> theClass)
Convert InputStream to object.
|
<T> T |
parseIntoBoxObject(java.lang.String jsonString,
java.lang.Class<T> theClass)
Convert the json string into object.
|
<T> T |
parseIntoBoxObjectQuietly(java.io.InputStream inputStream,
java.lang.Class<T> theClass)
Convert InputStream to object.No exception will be thrown, in case of failure, null is returned.
|
<T> T |
parseIntoBoxObjectQuietly(java.lang.String jsonString,
java.lang.Class<T> theClass)
Convert the json string into object.No exception will be thrown, in case of failure, null is returned.
|
java.lang.String convertBoxObjectToJSONStringQuietly(java.lang.Object object)
object - <T> T parseIntoBoxObjectQuietly(java.io.InputStream inputStream,
java.lang.Class<T> theClass)
inputStream - theClass - <T> T parseIntoBoxObjectQuietly(java.lang.String jsonString,
java.lang.Class<T> theClass)
jsonString - theClass - java.lang.String convertBoxObjectToJSONString(java.lang.Object object)
throws BoxJSONException,
java.io.IOException
object - BoxJSONExceptionjava.io.IOException<T> T parseIntoBoxObject(java.io.InputStream inputStream,
java.lang.Class<T> theClass)
throws BoxJSONException,
java.io.IOException
inputStream - theClass - BoxJSONExceptionjava.io.IOException<T> T parseIntoBoxObject(java.lang.String jsonString,
java.lang.Class<T> theClass)
throws BoxJSONException,
java.io.IOException
jsonString - theClass - BoxJSONExceptionjava.io.IOException