ValueReader designed to easily handle TemporalAccessor descendants such as
OffsetDateTime and ZonedDateTime. Their string representation is expected to
be in ISO 8601 format.
| Modifier and Type | Field and Description |
|---|---|
| private final TemporalQuery |
| Access | Constructor and Description |
|---|---|
| public | DefaultDateTimeValueReader(Class<T>
Target type targetType, TemporalQuery<T> Temporal query for parsing query)Constructor that includes a temporal query that is to be used during formatting. |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | Returns: Returntrue when an offset is missing, otherwise: falseISO 8601 string text)Check if an ISO 8601 string contains a time offset or not. |
| public Object |
| _query | back to summary |
|---|---|
| private final TemporalQuery<T> _query | |
| DefaultDateTimeValueReader | back to summary |
|---|---|
| public DefaultDateTimeValueReader(Class<T> targetType, TemporalQuery<T> query) Constructor that includes a temporal query that is to be used during formatting.
| |
| offsetMissing | back to summary |
|---|---|
| protected boolean offsetMissing(String text) Check if an ISO 8601 string contains a time offset or not.
| |
| read | back to summary |
|---|---|
| public Object read(JSONReader reader, JsonParser p) throws JacksonException Implements abstract tools.
| |