public class ObjectMapper extends Object
| Constructor and Description |
|---|
ObjectMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(com.fasterxml.jackson.databind.DeserializationFeature f,
boolean state) |
void |
configure(com.fasterxml.jackson.databind.MapperFeature f,
boolean state) |
void |
configure(com.fasterxml.jackson.databind.SerializationFeature f,
boolean state) |
<T> T |
convertValue(Object fromValue,
Class<T> toValueType) |
<T> T |
convertValue(Object fromValue,
com.fasterxml.jackson.databind.JavaType toValueType) |
<T> T |
convertValue(Object fromValue,
com.fasterxml.jackson.core.type.TypeReference<T> toValueTypeRef) |
void |
enableDefaultTypingAsProperty(com.fasterxml.jackson.databind.ObjectMapper.DefaultTyping applicability,
String propertyName)
Deprecated.
|
com.fasterxml.jackson.databind.DeserializationConfig |
getDeserializationConfig() |
com.fasterxml.jackson.databind.SerializationConfig |
getSerializationConfig() |
com.fasterxml.jackson.databind.JsonNode |
readTree(InputStream in) |
<T> T |
readValue(byte[] src,
Class<T> valueType) |
<T> T |
readValue(com.fasterxml.jackson.core.JsonParser p,
Class<T> valueType) |
<T> T |
readValue(String content,
Class<T> valueType) |
<T> T |
readValue(String content,
com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef) |
<T> T |
readValue(URL src,
Class<T> valueType) |
void |
registerModule(com.fasterxml.jackson.databind.Module module) |
void |
registerSubtypes(Class<?>... classes) |
<T> T |
treeToValue(com.fasterxml.jackson.core.TreeNode n,
Class<T> valueType) |
<T extends com.fasterxml.jackson.databind.JsonNode> |
valueToTree(Object fromValue) |
String |
writeValueAsString(Object value) |
public <T> T readValue(com.fasterxml.jackson.core.JsonParser p,
Class<T> valueType)
throws IOException
IOExceptionpublic <T> T readValue(URL src, Class<T> valueType) throws IOException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException
IOExceptioncom.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionpublic <T> T readValue(String content, Class<T> valueType) throws com.fasterxml.jackson.core.JsonProcessingException, com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.core.JsonProcessingExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionpublic <T> T readValue(String content, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef) throws com.fasterxml.jackson.core.JsonProcessingException, com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.core.JsonProcessingExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionpublic <T> T treeToValue(com.fasterxml.jackson.core.TreeNode n,
Class<T> valueType)
throws IllegalArgumentException,
com.fasterxml.jackson.core.JsonProcessingException
IllegalArgumentExceptioncom.fasterxml.jackson.core.JsonProcessingExceptionpublic <T extends com.fasterxml.jackson.databind.JsonNode> T valueToTree(Object fromValue) throws IllegalArgumentException
IllegalArgumentExceptionpublic String writeValueAsString(Object value) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic <T> T convertValue(Object fromValue, Class<T> toValueType) throws IllegalArgumentException
IllegalArgumentExceptionpublic <T> T convertValue(Object fromValue, com.fasterxml.jackson.core.type.TypeReference<T> toValueTypeRef) throws IllegalArgumentException
IllegalArgumentExceptionpublic <T> T convertValue(Object fromValue, com.fasterxml.jackson.databind.JavaType toValueType) throws IllegalArgumentException
IllegalArgumentException@Deprecated public void enableDefaultTypingAsProperty(com.fasterxml.jackson.databind.ObjectMapper.DefaultTyping applicability, String propertyName)
public void configure(com.fasterxml.jackson.databind.SerializationFeature f,
boolean state)
public void configure(com.fasterxml.jackson.databind.DeserializationFeature f,
boolean state)
public void configure(com.fasterxml.jackson.databind.MapperFeature f,
boolean state)
public com.fasterxml.jackson.databind.SerializationConfig getSerializationConfig()
public com.fasterxml.jackson.databind.DeserializationConfig getDeserializationConfig()
public void registerModule(com.fasterxml.jackson.databind.Module module)
public void registerSubtypes(Class<?>... classes)
public <T> T readValue(byte[] src,
Class<T> valueType)
throws IOException,
com.fasterxml.jackson.core.JsonParseException,
com.fasterxml.jackson.databind.JsonMappingException
IOExceptioncom.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionpublic com.fasterxml.jackson.databind.JsonNode readTree(InputStream in) throws IOException
IOExceptionCopyright © 2021. All rights reserved.