public class BoxJSONParser extends Object implements IBoxJSONParser
| Constructor and Description |
|---|
BoxJSONParser(IBoxResourceHub hub) |
| Modifier and Type | Method and Description |
|---|---|
String |
convertBoxObjectToJSONString(Object object)
Convert the object into String.
|
String |
convertBoxObjectToJSONStringQuietly(Object object)
Convert the object into String.
|
protected com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
<T> T |
parseIntoBoxObject(InputStream inputStream,
Class<T> theClass)
Convert InputStream to object.
|
<T> T |
parseIntoBoxObject(String jsonString,
Class<T> theClass)
Convert the json string into object.
|
<T> T |
parseIntoBoxObjectQuietly(InputStream inputStream,
Class<T> theClass)
Convert InputStream to object.No exception will be thrown, in case of failure, null is returned.
|
<T> T |
parseIntoBoxObjectQuietly(String jsonString,
Class<T> theClass)
Convert the json string into object.No exception will be thrown, in case of failure, null is returned.
|
public BoxJSONParser(IBoxResourceHub hub)
protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public String convertBoxObjectToJSONStringQuietly(Object object)
IBoxJSONParserconvertBoxObjectToJSONStringQuietly in interface IBoxJSONParserpublic <T> T parseIntoBoxObjectQuietly(InputStream inputStream, Class<T> theClass)
IBoxJSONParserparseIntoBoxObjectQuietly in interface IBoxJSONParserpublic <T> T parseIntoBoxObjectQuietly(String jsonString, Class<T> theClass)
IBoxJSONParserparseIntoBoxObjectQuietly in interface IBoxJSONParserpublic String convertBoxObjectToJSONString(Object object) throws BoxJSONException
IBoxJSONParserconvertBoxObjectToJSONString in interface IBoxJSONParserBoxJSONExceptionpublic <T> T parseIntoBoxObject(InputStream inputStream, Class<T> theClass) throws BoxJSONException
IBoxJSONParserparseIntoBoxObject in interface IBoxJSONParserBoxJSONExceptionpublic <T> T parseIntoBoxObject(String jsonString, Class<T> theClass) throws BoxJSONException
IBoxJSONParserparseIntoBoxObject in interface IBoxJSONParserBoxJSONExceptionCopyright © 2016 Nuxeo SA. All rights reserved.