public static class ObjectCodecService.NumberCodec extends ObjectCodec<Number>
type
Constructor and Description |
---|
NumberCodec() |
Modifier and Type | Method and Description |
---|---|
String |
getType()
Get this codec type.
|
boolean |
isBuiltin()
Whether this codec is a builtin codec
|
Number |
read(org.codehaus.jackson.JsonParser jp,
CoreSession session)
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,
Number value) |
findParametrizedType, getJavaType
public NumberCodec()
public String getType()
ObjectCodec
getType
in class ObjectCodec<Number>
public void write(org.codehaus.jackson.JsonGenerator jg, Number value) throws IOException
write
in class ObjectCodec<Number>
IOException
public Number read(org.codehaus.jackson.JsonParser jp, CoreSession session) throws IOException
ObjectCodec
read
in class ObjectCodec<Number>
IOException
public boolean isBuiltin()
ObjectCodec
isBuiltin
in class ObjectCodec<Number>
public void register(ObjectCodecService service)
Copyright © 2016 Nuxeo SA. All rights reserved.