Package net.ideahut.springboot.mapper
Class DataMapperImpl
java.lang.Object
net.ideahut.springboot.mapper.DataMapperImpl
- All Implemented Interfaces:
DataMapper
-
Field Summary
Fields inherited from interface net.ideahut.springboot.mapper.DataMapper
JSON, XML -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T<T> T<T> T<T> T<T> Tcom.fasterxml.jackson.databind.node.ArrayNodecom.fasterxml.jackson.databind.node.ObjectNodecom.fasterxml.jackson.databind.AnnotationIntrospectorboolean<T extends com.fasterxml.jackson.core.ObjectCodec>
Tmapper(int format) <T> Tread(byte[] bytes, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) <T> Tread(byte[] bytes, com.fasterxml.jackson.core.type.TypeReference<T> typeRef, int format) <T> T<T> T<T> Tread(InputStream stream, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) <T> Tread(InputStream stream, com.fasterxml.jackson.core.type.TypeReference<T> typeRef, int format) <T> Tread(InputStream stream, Class<T> type) <T> Tread(InputStream stream, Class<T> type, int format) <T> T<T> T<T> T<T> TregisterModule(com.fasterxml.jackson.databind.Module module) setIntrospector(com.fasterxml.jackson.databind.AnnotationIntrospector introspector) byte[]writeAsBytes(Object value, int format) byte[]writeAsBytes(Object value, int format, boolean isPretty) writeAsString(Object value, int format) writeAsString(Object value, int format, boolean isPretty) voidwriteTo(DataOutput out, Object value, int format) voidwriteTo(DataOutput out, Object value, int format, boolean isPretty) voidvoidvoidwriteTo(OutputStream out, Object value, int format) voidwriteTo(OutputStream out, Object value, int format, boolean isPretty) voidvoid
-
Constructor Details
-
DataMapperImpl
public DataMapperImpl() -
DataMapperImpl
public DataMapperImpl(boolean includeNull)
-
-
Method Details
-
getIntrospector
public com.fasterxml.jackson.databind.AnnotationIntrospector getIntrospector() -
setIntrospector
public DataMapperImpl setIntrospector(com.fasterxml.jackson.databind.AnnotationIntrospector introspector) -
findAndRegisterModules
-
registerModule
-
isIncludeNull
public boolean isIncludeNull() -
read
- Specified by:
readin interfaceDataMapper
-
read
- Specified by:
readin interfaceDataMapper
-
read
- Specified by:
readin interfaceDataMapper
-
read
- Specified by:
readin interfaceDataMapper
-
read
- Specified by:
readin interfaceDataMapper
-
read
- Specified by:
readin interfaceDataMapper
-
read
public <T> T read(byte[] bytes, com.fasterxml.jackson.core.type.TypeReference<T> typeRef, int format) - Specified by:
readin interfaceDataMapper
-
read
public <T> T read(byte[] bytes, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) - Specified by:
readin interfaceDataMapper
-
read
public <T> T read(String string, com.fasterxml.jackson.core.type.TypeReference<T> typeRef, int format) - Specified by:
readin interfaceDataMapper
-
read
- Specified by:
readin interfaceDataMapper
-
read
public <T> T read(InputStream stream, com.fasterxml.jackson.core.type.TypeReference<T> typeRef, int format) - Specified by:
readin interfaceDataMapper
-
read
- Specified by:
readin interfaceDataMapper
-
writeAsBytes
- Specified by:
writeAsBytesin interfaceDataMapper
-
writeAsBytes
- Specified by:
writeAsBytesin interfaceDataMapper
-
writeAsString
- Specified by:
writeAsStringin interfaceDataMapper
-
writeAsString
- Specified by:
writeAsStringin interfaceDataMapper
-
writeTo
- Specified by:
writeToin interfaceDataMapper- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceDataMapper- Throws:
IOException
-
writeTo
public void writeTo(OutputStream out, Object value, int format, boolean isPretty) throws IOException - Specified by:
writeToin interfaceDataMapper- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceDataMapper- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceDataMapper- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceDataMapper- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceDataMapper- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceDataMapper- Throws:
IOException
-
convert
- Specified by:
convertin interfaceDataMapper
-
convert
- Specified by:
convertin interfaceDataMapper
-
copy
- Specified by:
copyin interfaceDataMapper
-
copy
- Specified by:
copyin interfaceDataMapper
-
copy
- Specified by:
copyin interfaceDataMapper
-
createObjectNode
public com.fasterxml.jackson.databind.node.ObjectNode createObjectNode()- Specified by:
createObjectNodein interfaceDataMapper
-
createArrayNode
public com.fasterxml.jackson.databind.node.ArrayNode createArrayNode()- Specified by:
createArrayNodein interfaceDataMapper
-
mapper
public <T extends com.fasterxml.jackson.core.ObjectCodec> T mapper(int format) - Specified by:
mapperin interfaceDataMapper
-