public class DataMapperImpl extends Object implements DataMapper
JSON, XML| Constructor and Description |
|---|
DataMapperImpl() |
DataMapperImpl(boolean includeNull) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
convert(Object value,
Class<T> type) |
<T> T |
convert(Object value,
com.fasterxml.jackson.core.type.TypeReference<T> typeRef) |
<T> T |
copy(Object value) |
<T> T |
copy(Object value,
Class<T> type) |
<T> T |
copy(Object value,
com.fasterxml.jackson.core.type.TypeReference<T> typeRef) |
com.fasterxml.jackson.databind.node.ArrayNode |
createArrayNode() |
com.fasterxml.jackson.databind.node.ObjectNode |
createObjectNode() |
com.fasterxml.jackson.databind.AnnotationIntrospector |
getIntrospector() |
boolean |
isIncludeNull() |
<T extends com.fasterxml.jackson.core.ObjectCodec> |
mapper(int format) |
<T> T |
read(byte[] bytes,
Class<T> type) |
<T> T |
read(byte[] bytes,
Class<T> type,
int format) |
<T> T |
read(byte[] bytes,
com.fasterxml.jackson.core.type.TypeReference<T> typeRef) |
<T> T |
read(byte[] bytes,
com.fasterxml.jackson.core.type.TypeReference<T> typeRef,
int format) |
<T> T |
read(InputStream stream,
Class<T> type) |
<T> T |
read(InputStream stream,
Class<T> type,
int format) |
<T> T |
read(InputStream stream,
com.fasterxml.jackson.core.type.TypeReference<T> typeRef) |
<T> T |
read(InputStream stream,
com.fasterxml.jackson.core.type.TypeReference<T> typeRef,
int format) |
<T> T |
read(String string,
Class<T> type) |
<T> T |
read(String string,
Class<T> type,
int format) |
<T> T |
read(String string,
com.fasterxml.jackson.core.type.TypeReference<T> typeRef) |
<T> T |
read(String string,
com.fasterxml.jackson.core.type.TypeReference<T> typeRef,
int format) |
void |
setIncludeNull(boolean includeNull) |
void |
setIntrospector(com.fasterxml.jackson.databind.AnnotationIntrospector introspector) |
byte[] |
writeAsBytes(Object value,
int format) |
byte[] |
writeAsBytes(Object value,
int format,
boolean isPretty) |
String |
writeAsString(Object value,
int format) |
String |
writeAsString(Object value,
int format,
boolean isPretty) |
void |
writeTo(DataOutput out,
Object value,
int format) |
void |
writeTo(DataOutput out,
Object value,
int format,
boolean isPretty) |
void |
writeTo(File out,
Object value,
int format) |
void |
writeTo(File out,
Object value,
int format,
boolean isPretty) |
void |
writeTo(OutputStream out,
Object value,
int format) |
void |
writeTo(OutputStream out,
Object value,
int format,
boolean isPretty) |
void |
writeTo(Writer out,
Object value,
int format) |
void |
writeTo(Writer out,
Object value,
int format,
boolean isPretty) |
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 read(byte[] bytes,
Class<T> type,
int format)
read in interface DataMapperpublic <T> T read(byte[] bytes,
Class<T> type)
read in interface DataMapperpublic <T> T read(String string, Class<T> type, int format)
read in interface DataMapperpublic <T> T read(String string, Class<T> type)
read in interface DataMapperpublic <T> T read(InputStream stream, Class<T> type, int format)
read in interface DataMapperpublic <T> T read(InputStream stream, Class<T> type)
read in interface DataMapperpublic <T> T read(byte[] bytes,
com.fasterxml.jackson.core.type.TypeReference<T> typeRef,
int format)
read in interface DataMapperpublic <T> T read(byte[] bytes,
com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
read in interface DataMapperpublic <T> T read(String string, com.fasterxml.jackson.core.type.TypeReference<T> typeRef, int format)
read in interface DataMapperpublic <T> T read(String string, com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
read in interface DataMapperpublic <T> T read(InputStream stream, com.fasterxml.jackson.core.type.TypeReference<T> typeRef, int format)
read in interface DataMapperpublic <T> T read(InputStream stream, com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
read in interface DataMapperpublic byte[] writeAsBytes(Object value, int format, boolean isPretty)
writeAsBytes in interface DataMapperpublic byte[] writeAsBytes(Object value, int format)
writeAsBytes in interface DataMapperpublic String writeAsString(Object value, int format, boolean isPretty)
writeAsString in interface DataMapperpublic String writeAsString(Object value, int format)
writeAsString in interface DataMapperpublic void writeTo(File out, Object value, int format, boolean isPretty) throws IOException
writeTo in interface DataMapperIOExceptionpublic void writeTo(File out, Object value, int format) throws IOException
writeTo in interface DataMapperIOExceptionpublic void writeTo(OutputStream out, Object value, int format, boolean isPretty) throws IOException
writeTo in interface DataMapperIOExceptionpublic void writeTo(OutputStream out, Object value, int format) throws IOException
writeTo in interface DataMapperIOExceptionpublic void writeTo(Writer out, Object value, int format, boolean isPretty) throws IOException
writeTo in interface DataMapperIOExceptionpublic void writeTo(Writer out, Object value, int format) throws IOException
writeTo in interface DataMapperIOExceptionpublic void writeTo(DataOutput out, Object value, int format, boolean isPretty) throws IOException
writeTo in interface DataMapperIOExceptionpublic void writeTo(DataOutput out, Object value, int format) throws IOException
writeTo in interface DataMapperIOExceptionpublic <T> T convert(Object value, Class<T> type)
convert in interface DataMapperpublic <T> T convert(Object value, com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
convert in interface DataMapperpublic <T> T copy(Object value, Class<T> type)
copy in interface DataMapperpublic <T> T copy(Object value, com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
copy in interface DataMapperpublic <T> T copy(Object value)
copy in interface DataMapperpublic com.fasterxml.jackson.databind.node.ObjectNode createObjectNode()
createObjectNode in interface DataMapperpublic com.fasterxml.jackson.databind.node.ArrayNode createArrayNode()
createArrayNode in interface DataMapperpublic <T extends com.fasterxml.jackson.core.ObjectCodec> T mapper(int format)
mapper in interface DataMapperCopyright © 2023. All rights reserved.