com.fasterxml.jackson.datatype.joda.ser
Class DurationSerializer
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<T>
com.fasterxml.jackson.databind.ser.std.StdSerializer<T>
com.fasterxml.jackson.databind.ser.std.StdScalarSerializer<org.joda.time.Duration>
com.fasterxml.jackson.datatype.joda.ser.DurationSerializer
- All Implemented Interfaces:
- com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.jsonschema.SchemaAware
public final class DurationSerializer
- extends com.fasterxml.jackson.databind.ser.std.StdScalarSerializer<org.joda.time.Duration>
Serializes a Duration as its number of millis.
| Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer |
com.fasterxml.jackson.databind.JsonSerializer.None |
| Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer |
_handledType |
|
Method Summary |
void |
serialize(org.joda.time.Duration value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider)
|
| Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdScalarSerializer |
acceptJsonFormatVisitor, getSchema, serializeWithType |
| Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer |
createObjectNode, createSchemaNode, createSchemaNode, getSchema, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrow |
| Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer |
getDelegatee, isEmpty, isUnwrappingSerializer, replaceDelegatee, unwrappingSerializer, usesObjectId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DurationSerializer
public DurationSerializer()
serialize
public void serialize(org.joda.time.Duration value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider)
throws IOException,
com.fasterxml.jackson.core.JsonProcessingException
- Specified by:
serialize in class com.fasterxml.jackson.databind.ser.std.StdSerializer<org.joda.time.Duration>
- Throws:
IOException
com.fasterxml.jackson.core.JsonProcessingException
Copyright © 2012 FasterXML. All Rights Reserved.