public class JacksonCodec<T> extends java.lang.Object implements Serializer<T>, Deserializer<T>
| Constructor and Description |
|---|
JacksonCodec() |
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(java.io.InputStream in,
TypeDef<T> type) |
static <T> JacksonCodec<T> |
getInstance() |
void |
serialize(java.io.OutputStream out,
T object,
TypeDef<?> type) |
public T deserialize(java.io.InputStream in, TypeDef<T> type) throws java.io.IOException
deserialize in interface Deserializer<T>java.io.IOExceptionpublic void serialize(java.io.OutputStream out,
T object,
TypeDef<?> type)
throws java.io.IOException
serialize in interface Serializer<T>java.io.IOExceptionpublic static final <T> JacksonCodec<T> getInstance()