public abstract class ObjectCodec<T> extends Object
Constructor and Description |
---|
ObjectCodec() |
ObjectCodec(Class<T> type) |
Modifier and Type | Method and Description |
---|---|
static Class<?> |
findParametrizedType(Class<?> clazz) |
Class<T> |
getJavaType() |
String |
getType()
Get this codec type.
|
boolean |
isBuiltin()
Whether this codec is a builtin codec
|
T |
read(com.fasterxml.jackson.core.JsonParser jp,
CoreSession session)
When the object codec is called the stream is positioned on the first value.
|
void |
write(com.fasterxml.jackson.core.JsonGenerator jg,
T value) |
public ObjectCodec()
public ObjectCodec(Class<T> type)
public static Class<?> findParametrizedType(Class<?> clazz)
public String getType()
public boolean isBuiltin()
public Class<T> getJavaType()
public void write(com.fasterxml.jackson.core.JsonGenerator jg, T value) throws IOException
IOException
public T read(com.fasterxml.jackson.core.JsonParser jp, CoreSession session) throws IOException
jp
- IOException
Copyright © 2018 Nuxeo. All rights reserved.