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(org.codehaus.jackson.JsonParser jp,
CoreSession session)
When the object codec is called the stream is positioned on the first value.
|
void |
write(org.codehaus.jackson.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(org.codehaus.jackson.JsonGenerator jg, T value) throws IOException
IOException
public T read(org.codehaus.jackson.JsonParser jp, CoreSession session) throws IOException
jp
- IOException
Copyright © 2018 Nuxeo. All rights reserved.