public final class JacksonSerializer extends Object implements Serializer
Implementation of Serializer for Jackson.
Use the getDefaultSerializer() to get the instance with default
configuration for java sdk.
Exposed only for internal use.
| Modifier and Type | Method and Description |
|---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
getDefaultObjectMapper()
Get the instance of Object Mapper with default configuration for java sdk serialization.
|
static JacksonSerializer |
getDefaultSerializer()
Get the instance of Jackson JSON mapper with default configuration for java sdk
serialization.
|
<T> T |
readValue(byte[] bytes,
Class<T> type) |
<T> T |
readValue(String s,
Class<T> type) |
String |
writeValueAsString(Object o) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultpublic <T> T readValue(String s, Class<T> type) throws IOException
readValue in interface SerializerIOExceptionpublic <T> T readValue(byte[] bytes,
Class<T> type)
throws IOException
readValue in interface SerializerIOExceptionpublic String writeValueAsString(Object o) throws IOException
writeValueAsString in interface SerializerIOExceptionpublic static JacksonSerializer getDefaultSerializer()
Get the instance of Jackson JSON mapper with default configuration for java sdk serialization.
public static com.fasterxml.jackson.databind.ObjectMapper getDefaultObjectMapper()
Get the instance of Object Mapper with default configuration for java sdk serialization.
Copyright © 2016–2024. All rights reserved.