Deprecated
as a consequence of DateTimeSerializerBase being deprecated. See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| public static final DateSerializer | instance
Default instance that is used when no contextual configuration is needed. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected long | _timestamp(Date value)
Implements abstract com. |
| public void | serialize(Date
Value to serialize; can not be null. value, JsonGenerator Generator used to output resulting Json content g, SerializerProvider Provider that can be used to get serializers for
serializing Objects value contains, if any. provider)Implements abstract com. |
| public DateSerializer | withFormat(Boolean timestamp, DateFormat customFormat)
Implements abstract com.
Deprecated
as a consequence of
DateSerializer being deprecated.
|
| instance | back to summary |
|---|---|
| public static final DateSerializer instance
Deprecated as a consequence of Default instance that is used when no contextual configuration is needed. | |
| DateSerializer | back to summary |
|---|---|
| public DateSerializer() | |
| DateSerializer | back to summary |
|---|---|
| public DateSerializer(Boolean useTimestamp, DateFormat customFormat) | |
| _timestamp | back to summary |
|---|---|
| protected long _timestamp(Date value) Implements abstract com.
| |
| serialize | back to summary |
|---|---|
| public void serialize(Date value, JsonGenerator g, SerializerProvider provider) throws IOException Implements abstract com. Doc from com. Method that can be called to ask implementation to serialize values of type this serializer handles.
| |
| withFormat | back to summary |
|---|---|
| public DateSerializer withFormat(Boolean timestamp, DateFormat customFormat) Implements abstract com. Deprecated as a consequence of
| |