Package org.codehaus.jackson.map.ext
Class JodaSerializers.JodaSerializer<T>
- java.lang.Object
-
- org.codehaus.jackson.map.JsonSerializer<T>
-
- org.codehaus.jackson.map.ser.std.SerializerBase<T>
-
- org.codehaus.jackson.map.ext.JodaSerializers.JodaSerializer<T>
-
- All Implemented Interfaces:
SchemaAware
- Direct Known Subclasses:
JodaSerializers.DateMidnightSerializer
,JodaSerializers.DateTimeSerializer
,JodaSerializers.LocalDateSerializer
,JodaSerializers.LocalDateTimeSerializer
- Enclosing class:
- JodaSerializers
protected abstract static class JodaSerializers.JodaSerializer<T> extends SerializerBase<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.codehaus.jackson.map.JsonSerializer
JsonSerializer.None
-
-
Field Summary
-
Fields inherited from class org.codehaus.jackson.map.ser.std.SerializerBase
_handledType
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JodaSerializer(Class<T> cls)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
printLocalDate(ReadableInstant dateValue)
protected String
printLocalDate(ReadablePartial dateValue)
protected String
printLocalDateTime(ReadablePartial dateValue)
-
Methods inherited from class org.codehaus.jackson.map.ser.std.SerializerBase
createObjectNode, createSchemaNode, createSchemaNode, getSchema, handledType, isDefaultSerializer, serialize, wrapAndThrow, wrapAndThrow, wrapAndThrow, wrapAndThrow
-
Methods inherited from class org.codehaus.jackson.map.JsonSerializer
isUnwrappingSerializer, serializeWithType, unwrappingSerializer
-
-
-
-
Method Detail
-
printLocalDateTime
protected String printLocalDateTime(ReadablePartial dateValue) throws IOException, JsonProcessingException
- Throws:
IOException
JsonProcessingException
-
printLocalDate
protected String printLocalDate(ReadablePartial dateValue) throws IOException, JsonProcessingException
- Throws:
IOException
JsonProcessingException
-
printLocalDate
protected String printLocalDate(ReadableInstant dateValue) throws IOException, JsonProcessingException
- Throws:
IOException
JsonProcessingException
-
-