@InterfaceAudience.Public @InterfaceStability.Uncommitted public class DefaultObjectMapper extends Object
Provides global access to the services of a Jackson ObjectMapper
with default configuration.
Modifier and Type | Method and Description |
---|---|
static ObjectWriter |
prettyWriter() |
static ObjectReader |
reader() |
static JsonNode |
readTree(byte[] content) |
static JsonNode |
readTree(InputStream src) |
static JsonNode |
readTree(Reader src) |
static JsonNode |
readTree(String content) |
static <T> T |
readValue(byte[] content,
Class<T> valueType) |
static <T> T |
readValue(byte[] content,
int offset,
int len,
Class<T> valueType) |
static <T> T |
readValue(byte[] content,
int offset,
int len,
com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef) |
static <T> T |
readValue(byte[] content,
com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef) |
static <T> T |
readValue(InputStream src,
Class<T> valueType) |
static <T> T |
readValue(InputStream src,
com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef) |
static <T> T |
readValue(Reader src,
Class<T> valueType) |
static <T> T |
readValue(Reader src,
com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef) |
static <T> T |
readValue(String content,
Class<T> valueType) |
static <T> T |
readValue(String content,
com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef) |
static Map<String,Object> |
readValueAsMap(byte[] content) |
static Map<String,Object> |
readValueAsMap(InputStream src) |
static Map<String,Object> |
readValueAsMap(Reader src) |
static Map<String,Object> |
readValueAsMap(String content) |
static ObjectWriter |
writer() |
static void |
writeValue(OutputStream out,
Object value) |
static void |
writeValue(Writer w,
Object value) |
static byte[] |
writeValueAsBytes(Object value) |
static String |
writeValueAsString(Object value) |
public static ObjectReader reader()
public static ObjectWriter writer()
public static ObjectWriter prettyWriter()
public static String writeValueAsString(Object value) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingException
public static byte[] writeValueAsBytes(Object value) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingException
public static void writeValue(OutputStream out, Object value) throws IOException
IOException
public static void writeValue(Writer w, Object value) throws IOException
IOException
public static <T> T readValue(String content, Class<T> valueType) throws IOException
IOException
public static <T> T readValue(String content, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef) throws IOException
IOException
public static <T> T readValue(byte[] content, Class<T> valueType) throws IOException
IOException
public static <T> T readValue(byte[] content, int offset, int len, Class<T> valueType) throws IOException
IOException
public static <T> T readValue(byte[] content, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef) throws IOException
IOException
public static <T> T readValue(byte[] content, int offset, int len, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef) throws IOException
IOException
public static <T> T readValue(Reader src, Class<T> valueType) throws IOException
IOException
public static <T> T readValue(Reader src, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef) throws IOException
IOException
public static <T> T readValue(InputStream src, Class<T> valueType) throws IOException
IOException
public static <T> T readValue(InputStream src, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef) throws IOException
IOException
public static Map<String,Object> readValueAsMap(String content) throws IOException
IOException
public static Map<String,Object> readValueAsMap(byte[] content) throws IOException
IOException
public static Map<String,Object> readValueAsMap(Reader src) throws IOException
IOException
public static Map<String,Object> readValueAsMap(InputStream src) throws IOException
IOException
public static JsonNode readTree(String content) throws IOException
IOException
public static JsonNode readTree(byte[] content) throws IOException
IOException
public static JsonNode readTree(Reader src) throws IOException
IOException
public static JsonNode readTree(InputStream src) throws IOException
IOException
Copyright © 2018 Couchbase, Inc.. All rights reserved.