public class DefaultDateTimeValueReader<T extends TemporalAccessor>
extends com.fasterxml.jackson.jr.ob.api.ValueReader
ValueReader designed to easily handle TemporalAccessor descendants such as
OffsetDateTime and ZonedDateTime. Their string representation is expected to
be in ISO 8601 format.| Constructor and Description |
|---|
DefaultDateTimeValueReader(Class<T> targetType,
TemporalQuery<T> query)
Constructor that includes a temporal query that is to be used during formatting.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
offsetMissing(String text)
Check if an ISO 8601 string contains a time offset or not.
|
Object |
read(com.fasterxml.jackson.jr.ob.impl.JSONReader reader,
com.fasterxml.jackson.core.JsonParser p) |
public DefaultDateTimeValueReader(Class<T> targetType, TemporalQuery<T> query)
targetType - Target typequery - Temporal query for parsingpublic Object read(com.fasterxml.jackson.jr.ob.impl.JSONReader reader, com.fasterxml.jackson.core.JsonParser p) throws IOException
read in class com.fasterxml.jackson.jr.ob.api.ValueReaderIOExceptionprotected boolean offsetMissing(String text)
text - ISO 8601 stringtrue when an offset is missing, otherwise: falseCopyright © 2026 FasterXML. All rights reserved.