public class NumberMarshaller extends Object implements JsonMarshaller<Number>
Constructor and Description |
---|
NumberMarshaller() |
Modifier and Type | Method and Description |
---|---|
Class<Number> |
getJavaType()
The marshalled java type
|
String |
getType()
The type name that appears in serialization
|
Number |
read(com.fasterxml.jackson.core.JsonParser jp)
Builds and returns a POJO from the JSON object
|
void |
write(com.fasterxml.jackson.core.JsonGenerator jg,
Object value)
Writes the POJO object to the JsonGenerator
|
public NumberMarshaller()
public String getType()
JsonMarshaller
getType
in interface JsonMarshaller<Number>
public Class<Number> getJavaType()
JsonMarshaller
getJavaType
in interface JsonMarshaller<Number>
public Number read(com.fasterxml.jackson.core.JsonParser jp) throws IOException
JsonMarshaller
read
in interface JsonMarshaller<Number>
IOException
public void write(com.fasterxml.jackson.core.JsonGenerator jg, Object value) throws IOException
JsonMarshaller
write
in interface JsonMarshaller<Number>
IOException
Copyright © 2019 Nuxeo. All rights reserved.