public static class ObjectCodecService.NumberCodec extends ObjectCodec<Number>
Constructor and Description |
---|
ObjectCodecService.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)
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 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) throws IOException
ObjectCodec
read
in class ObjectCodec<Number>
IOException
public boolean isBuiltin()
ObjectCodec
isBuiltin
in class ObjectCodec<Number>
public void register(ObjectCodecService service)
Copyright © 2011 Nuxeo SA. All Rights Reserved.