public class ObjectMapperWrapper extends Object implements Serializable
ObjectMapper
so that you can supply your own ObjectMapper
reference.Modifier and Type | Class and Description |
---|---|
static class |
ObjectMapperWrapper.OffsetDateTimeDeserializer |
static class |
ObjectMapperWrapper.OffsetDateTimeSerializer |
Modifier and Type | Field and Description |
---|---|
static ObjectMapperWrapper |
INSTANCE |
Constructor and Description |
---|
ObjectMapperWrapper() |
ObjectMapperWrapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
Modifier and Type | Method and Description |
---|---|
<T> T |
clone(T value) |
<T> T |
fromBytes(byte[] value,
Class<T> clazz) |
<T> T |
fromBytes(byte[] value,
Type type) |
<T> T |
fromString(String string,
Class<T> clazz) |
<T> T |
fromString(String string,
Type type) |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
void |
setJsonSerializer(JsonSerializer jsonSerializer) |
byte[] |
toBytes(Object value) |
com.fasterxml.jackson.databind.JsonNode |
toJsonNode(String value) |
String |
toString(Object value) |
public static final ObjectMapperWrapper INSTANCE
public ObjectMapperWrapper()
public ObjectMapperWrapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public void setJsonSerializer(JsonSerializer jsonSerializer)
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public <T> T fromBytes(byte[] value, Class<T> clazz)
public <T> T fromBytes(byte[] value, Type type)
public byte[] toBytes(Object value)
public com.fasterxml.jackson.databind.JsonNode toJsonNode(String value)
public <T> T clone(T value)
Copyright © 2022. All rights reserved.