public static class ObjectCodecService.DateCodec extends ObjectCodec<Date>
type| Constructor and Description |
|---|
DateCodec() |
| Modifier and Type | Method and Description |
|---|---|
String |
getType()
Get this codec type.
|
boolean |
isBuiltin()
Whether this codec is a builtin codec
|
Date |
read(com.fasterxml.jackson.core.JsonParser jp,
CoreSession session)
When the object codec is called the stream is positioned on the first value.
|
void |
register(ObjectCodecService service) |
void |
write(com.fasterxml.jackson.core.JsonGenerator jg,
Date value) |
findParametrizedType, getJavaTypepublic DateCodec()
public String getType()
ObjectCodecgetType in class ObjectCodec<Date>public void write(com.fasterxml.jackson.core.JsonGenerator jg, Date value) throws IOException
write in class ObjectCodec<Date>IOExceptionpublic Date read(com.fasterxml.jackson.core.JsonParser jp, CoreSession session) throws IOException
ObjectCodecread in class ObjectCodec<Date>IOExceptionpublic boolean isBuiltin()
ObjectCodecisBuiltin in class ObjectCodec<Date>public void register(ObjectCodecService service)
Copyright © 2019 Nuxeo. All rights reserved.