Note
name was DateSerializer in Jackson 2.x
| Modifier and Type | Field and Description |
|---|---|
| public static final JavaUtilDateSerializer | 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 tools.
|
| public void | serialize(Date 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 JavaUtilDateSerializer | withFormat(Boolean timestamp, DateFormat customFormat)
Implements abstract tools.
|
| instance | back to summary |
|---|---|
| public static final JavaUtilDateSerializer instance Default instance that is used when no contextual configuration is needed. | |
| JavaUtilDateSerializer | back to summary |
|---|---|
| public JavaUtilDateSerializer() | |
| JavaUtilDateSerializer | back to summary |
|---|---|
| public JavaUtilDateSerializer(Boolean useTimestamp, DateFormat customFormat) | |
| _timestamp | back to summary |
|---|---|
| protected long _timestamp(Date value) Implements abstract tools.
| |
| serialize | back to summary |
|---|---|
| public void serialize(Date 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 JavaUtilDateSerializer withFormat(Boolean timestamp, DateFormat customFormat) Implements abstract tools.
| |