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

public Class LocalDateTimeValueReader

extends ValueReader
Class Inheritance
Imports
java.io.IOException, java.time.LocalDateTime, .ZoneId, .ZonedDateTime, java.time.temporal.TemporalAccessor, java.util.Objects, tools.jackson.core.JacksonException, .JsonParser, .JsonToken, tools.jackson.jr.ob.JSONObjectException, tools.jackson.jr.ob.api.ValueReader, tools.jackson.jr.ob.impl.JSONReader

ValueReader designed specifically to handle LocalDateTime instances. This requires a slightly different approach than other date time types because we want to be as forgiving as possible and be able to also interpret ISO 8601 dates that include an offset or zone ID.
Since
2.20
See Also
ISO 8601 on Wikipedia

Field Summary

Modifier and TypeField and Description
private final ZoneId
Inherited from tools.jackson.jr.ob.api.ValueReader:
_valueType

Constructor Summary

AccessConstructor and Description
public
LocalDateTimeValueReader(ZoneId
Destination zone ID
localZoneId
)

Constructor that accepts a zone ID that should be used to when a ISO 8601 string that includes an offset needs to be converted to a local date time.

Method Summary

Modifier and TypeMethod and Description
public Object
Inherited from tools.jackson.jr.ob.api.ValueReader:
_tokenDesc_tokenDesc_valueTypeDescreadNextvalueType

Field Detail

_localZoneIdback to summary
private final ZoneId _localZoneId

Constructor Detail

LocalDateTimeValueReaderback to summary
public LocalDateTimeValueReader(ZoneId localZoneId)

Constructor that accepts a zone ID that should be used to when a ISO 8601 string that includes an offset needs to be converted to a local date time.

Parameters
localZoneId:ZoneId

Destination zone ID

Method Detail

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

Implements abstract tools.jackson.jr.ob.api.ValueReader.read.

Annotations
@Override