public class DataMapperImpl extends Object implements DataMapper
| Constructor and Description |
|---|
DataMapperImpl() |
DataMapperImpl(boolean includeNull) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
convertData(Object value,
Class<T> type) |
com.fasterxml.jackson.databind.node.ArrayNode |
createArrayNode() |
com.fasterxml.jackson.databind.node.ObjectNode |
createObjectNode() |
com.fasterxml.jackson.databind.AnnotationIntrospector |
getIntrospector() |
boolean |
isIncludeNull() |
<T> T |
readData(byte[] data,
Class<T> type) |
<T> T |
readData(InputStream stream,
Class<T> type) |
<T> T |
readData(String data,
Class<T> type) |
void |
setIncludeNull(boolean includeNull) |
void |
setIntrospector(com.fasterxml.jackson.databind.AnnotationIntrospector introspector) |
byte[] |
writeJsonAsBytes(Object value) |
String |
writeJsonAsString(Object value) |
byte[] |
writeXmlAsBytes(Object value) |
String |
writeXmlAsString(Object value) |
public DataMapperImpl()
public DataMapperImpl(boolean includeNull)
public com.fasterxml.jackson.databind.AnnotationIntrospector getIntrospector()
public void setIntrospector(com.fasterxml.jackson.databind.AnnotationIntrospector introspector)
public boolean isIncludeNull()
public void setIncludeNull(boolean includeNull)
public <T> T readData(byte[] data,
Class<T> type)
readData in interface DataMapperpublic <T> T readData(String data, Class<T> type)
readData in interface DataMapperpublic <T> T readData(InputStream stream, Class<T> type)
readData in interface DataMapperpublic byte[] writeJsonAsBytes(Object value)
writeJsonAsBytes in interface DataMapperpublic String writeJsonAsString(Object value)
writeJsonAsString in interface DataMapperpublic byte[] writeXmlAsBytes(Object value)
writeXmlAsBytes in interface DataMapperpublic String writeXmlAsString(Object value)
writeXmlAsString in interface DataMapperpublic <T> T convertData(Object value, Class<T> type)
convertData in interface DataMapperpublic com.fasterxml.jackson.databind.node.ObjectNode createObjectNode()
createObjectNode in interface DataMapperpublic com.fasterxml.jackson.databind.node.ArrayNode createArrayNode()
createArrayNode in interface DataMapperCopyright © 2020. All rights reserved.