public class DateMarshaller extends Object implements JsonMarshaller<Date>
Constructor and Description |
---|
DateMarshaller() |
Modifier and Type | Method and Description |
---|---|
Class<Date> |
getJavaType()
The marshalled java type
|
String |
getType()
The type name that appears in serialization
|
Date |
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 DateMarshaller()
public String getType()
JsonMarshaller
getType
in interface JsonMarshaller<Date>
public Class<Date> getJavaType()
JsonMarshaller
getJavaType
in interface JsonMarshaller<Date>
public Date read(com.fasterxml.jackson.core.JsonParser jp) throws IOException
JsonMarshaller
read
in interface JsonMarshaller<Date>
IOException
public void write(com.fasterxml.jackson.core.JsonGenerator jg, Object value) throws IOException
JsonMarshaller
write
in interface JsonMarshaller<Date>
IOException
Copyright © 2018 Nuxeo. All rights reserved.