public class JacksonSerializer<T> extends Object implements InstanceSerializer<T>
| Constructor and Description |
|---|
JacksonSerializer(com.fasterxml.jackson.databind.ObjectMapper mapper,
Class<T> klazz) |
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(byte[] raw) |
boolean |
equals(Object obj) |
int |
hashCode() |
byte[] |
serialize(T instance) |
public T deserialize(byte[] raw) throws IOException
deserialize in interface InstanceSerializer<T>IOExceptionpublic byte[] serialize(T instance) throws IOException
serialize in interface InstanceSerializer<T>IOExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.