Top Description Fields Constructors Methods
tools.jackson.jr.extension.javatime

public Class OffsetDateTimeValueReader

extends DefaultDateTimeValueReader<OffsetDateTime>
Class Inheritance
Imports
java.io.IOException, java.time.OffsetDateTime, .ZoneId, .ZonedDateTime, java.util.Objects, tools.jackson.core.JacksonException, .JsonParser, tools.jackson.jr.ob.api.ValueReader, tools.jackson.jr.ob.impl.JSONReader

ValueReader that converts an ISO 8601 string to a ZonedDateTime instance.
Since
2.20
See Also
ISO 8601 on Wikipedia

Field Summary

Modifier and TypeField and Description
private final ZoneId

Constructor Summary

AccessConstructor and Description
public
OffsetDateTimeValueReader(ZoneId
Local zone ID
localZoneId
)

Constructor that accepts a zone ID as a parameter.

Method Summary

Modifier and TypeMethod and Description
public Object
Inherited from tools.jackson.jr.extension.javatime.DefaultDateTimeValueReader:
offsetMissing

Field Detail

_localZoneIdback to summary
private final ZoneId _localZoneId

Constructor Detail

OffsetDateTimeValueReaderback to summary
public OffsetDateTimeValueReader(ZoneId localZoneId)

Constructor that accepts a zone ID as a parameter. The zone ID is configured when no zone or offset was configured in the ISO 8601 string.

Parameters
localZoneId:ZoneId

Local zone ID

Method Detail

readback to summary
public Object read(JSONReader reader, JsonParser p) throws JacksonException

Overrides tools.jackson.jr.extension.javatime.DefaultDateTimeValueReader.read.

Annotations
@Override