Class ObjectCodec<T>
java.lang.Object
org.nuxeo.ecm.automation.io.services.codec.ObjectCodec<T>
- Direct Known Subclasses:
AbstractMarshallingRegistryCodec
,ObjectCodecService.BooleanCodec
,ObjectCodecService.CalendarCodec
,ObjectCodecService.DateCodec
,ObjectCodecService.DocumentAdapterCodec
,ObjectCodecService.NumberCodec
,ObjectCodecService.StringCodec
- Author:
- Bogdan Stefanescu
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?>
findParametrizedType
(Class<?> clazz) getType()
Get this codec type.boolean
Whether this codec is a builtin codecread
(com.fasterxml.jackson.core.JsonParser jp, CoreSession session) When the object codec is called the stream is positioned on the first value.void
-
Field Details
-
type
-
-
Constructor Details
-
ObjectCodec
public ObjectCodec() -
ObjectCodec
-
-
Method Details
-
findParametrizedType
-
getType
Get this codec type. Implementors can override to return a short name. The default name is the object type name. -
isBuiltin
public boolean isBuiltin()Whether this codec is a builtin codec -
getJavaType
-
write
- Throws:
IOException
-
read
When the object codec is called the stream is positioned on the first value. For inlined objects this is the first value after the "entity-type" property. For non inlined objects this will be the object itself (i.e. '{' or '[')- Throws:
IOException
-