public class JacksonUtils
extends Object
-
-
-
方法概要
static <T> T
convert(Object object,
com.fasterxml.jackson.core.type.TypeReference<T> targetType)
static <T> T
static com.fasterxml.jackson.databind.ObjectMapper
static byte[]
static <T> T
toObject(byte[] source,
com.fasterxml.jackson.core.type.TypeReference<T> targetType)
static <T> T
static <T> T
toObject(String source,
com.fasterxml.jackson.core.type.TypeReference<T> targetType)
static <T> T
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
构造器详细资料
-
JacksonUtils
public JacksonUtils()
-
方法详细资料
-
createObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper()
-
toBytes
public static byte[] toBytes(Object target)
-
toObject
public static <T> T toObject(byte[] source,
Class<T> targetType)
-
toObject
public static <T> T toObject(byte[] source,
com.fasterxml.jackson.core.type.TypeReference<T> targetType)
-
-
toObject
public static <T> T toObject(String source,
Class<T> targetType)
-
toObject
public static <T> T toObject(String source,
com.fasterxml.jackson.core.type.TypeReference<T> targetType)
-
convert
public static <T> T convert(Object object,
Class<T> targetType)
-
convert
public static <T> T convert(Object object,
com.fasterxml.jackson.core.type.TypeReference<T> targetType)