java.util.Calendar .
As with other time/date types, is configurable to produce timestamps
(standard Java 64-bit timestamp) or textual formats (usually ISO-8601).Note
name was CalendarSerializer in Jackson 2.x
| Modifier and Type | Field and Description |
|---|---|
| public static final JavaUtilCalendarSerializer |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected long | _timestamp(Calendar value)
Implements abstract tools.
|
| public void | serialize(Calendar value, JsonGenerator g, SerializationContext provider)
Implements abstract tools. Method that can be called to ask implementation to serialize values of type this serializer handles. |
| public JavaUtilCalendarSerializer | withFormat(Boolean timestamp, DateFormat customFormat)
Implements abstract tools.
|
| instance | back to summary |
|---|---|
| public static final JavaUtilCalendarSerializer instance | |
| JavaUtilCalendarSerializer | back to summary |
|---|---|
| public JavaUtilCalendarSerializer() | |
| JavaUtilCalendarSerializer | back to summary |
|---|---|
| public JavaUtilCalendarSerializer(Boolean useTimestamp, DateFormat customFormat) | |
| _timestamp | back to summary |
|---|---|
| protected long _timestamp(Calendar value) Implements abstract tools.
| |
| serialize | back to summary |
|---|---|
| public void serialize(Calendar value, JsonGenerator g, SerializationContext provider) throws JacksonException Implements abstract tools. Doc from tools. Method that can be called to ask implementation to serialize values of type this serializer handles.
| |
| withFormat | back to summary |
|---|---|
| public JavaUtilCalendarSerializer withFormat(Boolean timestamp, DateFormat customFormat) Implements abstract tools.
| |