ValueReaders and ValueWriters for Date/Time
types supported by Java Time Extension.
| Modifier and Type | Field and Description |
|---|---|
| private ZoneId | |
| protected static final DateTimeFormatter | |
| protected static final DateTimeFormatter |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static DateTimeFormatter | Returns: FormatterSet to includeUtcDefault)true to set UTC to be the default offset
for non-local date times that do not have an offset. Set to
false when handling local date times.Create a forgiving date time formatter that allows different interpretations of ISO 8601 strings to be parsed. |
| public ValueReader | findValueReader(JSONReader readContext, Class<?> type)
Overrides tools. Method called to find custom reader for given type that is NOT one of
special container types ( |
| public ValueWriter | findValueWriter(JSONWriter writeContext, Class<?> type)
Overrides tools.
|
| public JavaTimeReaderWriterProvider | Returns: Reference for chainingTime zone to apply, or localZoneId)nullSetter to configure a time zone that is to be applied when a zoned ISO 8601 date time needs
to be converted to a |
| public JavaTimeReaderWriterProvider | Returns: Reference for chainingConvenience method to quickly set the system default time zone as the preferred one. |
| _localZoneId | back to summary |
|---|---|
| private ZoneId _localZoneId | |
| LOCAL_FORMATTER | back to summary |
|---|---|
| protected static final DateTimeFormatter LOCAL_FORMATTER | |
| OFFSET_FORMATTER | back to summary |
|---|---|
| protected static final DateTimeFormatter OFFSET_FORMATTER | |
| JavaTimeReaderWriterProvider | back to summary |
|---|---|
| public JavaTimeReaderWriterProvider() | |
| _createFormatter | back to summary |
|---|---|
| private static DateTimeFormatter _createFormatter(boolean includeUtcDefault) Create a forgiving date time formatter that allows different interpretations of ISO 8601 strings to be parsed.
| |
| findValueReader | back to summary |
|---|---|
| public ValueReader findValueReader(JSONReader readContext, Class<?> type) Overrides tools. Doc from tools. Method called to find custom reader for given type that is NOT one of
special container types (
| |
| findValueWriter | back to summary |
|---|---|
| public ValueWriter findValueWriter(JSONWriter writeContext, Class<?> type) Overrides tools.
| |
| withLocalTimeZone | back to summary |
|---|---|
| public JavaTimeReaderWriterProvider withLocalTimeZone(ZoneId localZoneId) Setter to configure a time zone that is to be applied when a zoned ISO 8601 date time needs
to be converted to a
| |
| withSystemDefaultTimeZone | back to summary |
|---|---|
| public JavaTimeReaderWriterProvider withSystemDefaultTimeZone() Convenience method to quickly set the system default time zone as the preferred one. This
is equivalent to calling:
| |