public final class DateTimeSerializer
extends com.fasterxml.jackson.databind.JsonSerializer<java.time.OffsetDateTime>
OffsetDateTime object into ISO8601 formats.| Constructor and Description |
|---|
DateTimeSerializer() |
| Modifier and Type | Method and Description |
|---|---|
static com.fasterxml.jackson.databind.module.SimpleModule |
getModule()
Gets a module wrapping this serializer as an adapter for the Jackson
ObjectMapper.
|
void |
serialize(java.time.OffsetDateTime value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider) |
static String |
toString(java.time.OffsetDateTime offsetDateTime)
Convert the provided OffsetDateTime to its String representation.
|
public static com.fasterxml.jackson.databind.module.SimpleModule getModule()
public void serialize(java.time.OffsetDateTime value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider)
throws IOException
serialize in class com.fasterxml.jackson.databind.JsonSerializer<java.time.OffsetDateTime>IOExceptionpublic static String toString(java.time.OffsetDateTime offsetDateTime)
offsetDateTime - The OffsetDateTime to convert./**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/