org.nuxeo.ecm.automation.server.jaxrs.io
Class ObjectCodecService.DateCodec
java.lang.Object
org.nuxeo.ecm.automation.server.jaxrs.io.ObjectCodec<Date>
org.nuxeo.ecm.automation.server.jaxrs.io.ObjectCodecService.DateCodec
- Enclosing class:
- ObjectCodecService
public static class ObjectCodecService.DateCodec
- extends ObjectCodec<Date>
Method Summary |
String |
getType()
Get this codec type. |
boolean |
isBuiltin()
Whether this codec is a builtin codec |
Date |
read(org.codehaus.jackson.JsonParser jp)
When the object codec is called the stream is positioned on the first value. |
void |
register(ObjectCodecService service)
|
void |
write(org.codehaus.jackson.JsonGenerator jg,
Date value)
|
ObjectCodecService.DateCodec
public ObjectCodecService.DateCodec()
getType
public String getType()
- Description copied from class:
ObjectCodec
- Get this codec type. Implementors can override to return a short name.
The default name is the object type name.
- Overrides:
getType
in class ObjectCodec<Date>
- Returns:
write
public void write(org.codehaus.jackson.JsonGenerator jg,
Date value)
throws IOException
- Overrides:
write
in class ObjectCodec<Date>
- Throws:
IOException
read
public Date read(org.codehaus.jackson.JsonParser jp)
throws IOException
- Description copied from class:
ObjectCodec
- 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 '[')
- Overrides:
read
in class ObjectCodec<Date>
- Returns:
-
- Throws:
IOException
isBuiltin
public boolean isBuiltin()
- Description copied from class:
ObjectCodec
- Whether this codec is a builtin codec
- Overrides:
isBuiltin
in class ObjectCodec<Date>
- Returns:
register
public void register(ObjectCodecService service)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.