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
- BoxJSONException
java.io.IOException
<T> T parseIntoBoxObject(java.io.InputStream inputStream, java.lang.Class<T> theClass) throws BoxJSONException, java.io.IOException
inputStream
- theClass
- BoxJSONException
java.io.IOException
<T> T parseIntoBoxObject(java.lang.String jsonString, java.lang.Class<T> theClass) throws BoxJSONException, java.io.IOException
jsonString
- theClass
- BoxJSONException
java.io.IOException