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)
IBoxJSONParser
convertBoxObjectToJSONStringQuietly
in interface IBoxJSONParser
public <T> T parseIntoBoxObjectQuietly(InputStream inputStream, Class<T> theClass)
IBoxJSONParser
parseIntoBoxObjectQuietly
in interface IBoxJSONParser
public <T> T parseIntoBoxObjectQuietly(String jsonString, Class<T> theClass)
IBoxJSONParser
parseIntoBoxObjectQuietly
in interface IBoxJSONParser
public String convertBoxObjectToJSONString(Object object) throws BoxJSONException
IBoxJSONParser
convertBoxObjectToJSONString
in interface IBoxJSONParser
BoxJSONException
public <T> T parseIntoBoxObject(InputStream inputStream, Class<T> theClass) throws BoxJSONException
IBoxJSONParser
parseIntoBoxObject
in interface IBoxJSONParser
BoxJSONException
public <T> T parseIntoBoxObject(String jsonString, Class<T> theClass) throws BoxJSONException
IBoxJSONParser
parseIntoBoxObject
in interface IBoxJSONParser
BoxJSONException
Copyright © 2016 Nuxeo SA. All rights reserved.