Class JsonbDateConverter
- java.lang.Object
-
- org.apache.johnzon.jsonb.converter.JsonbLocaleParserConverterBase<T>
-
- org.apache.johnzon.jsonb.converter.JsonbDateConverterBase<Date>
-
- org.apache.johnzon.jsonb.converter.JsonbDateConverter
-
- All Implemented Interfaces:
Converter<Date>
,MapperConverter
public class JsonbDateConverter extends JsonbDateConverterBase<Date>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.johnzon.mapper.Converter
Converter.TypeAccess
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
hasTimezone
private boolean
isIso
private static ZoneId
UTC
-
Fields inherited from class org.apache.johnzon.jsonb.converter.JsonbDateConverterBase
formatter
-
-
Constructor Summary
Constructors Constructor Description JsonbDateConverter(jakarta.json.bind.annotation.JsonbDateFormat dateFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Date
fromIso(String text)
private Date
fromLocalDateTime(String text)
Date
fromString(String text)
private Date
fromStringWithFormatter(String text)
private Date
fromZonedDateTime(String text)
private String
toIsoString(Instant instant)
String
toString(Date instance)
private String
toStringFromLocalDateTime(Instant instant)
private String
toStringFromZonedDateTime(Instant instant)
private String
toStringWithFormatter(Date instance)
-
Methods inherited from class org.apache.johnzon.jsonb.converter.JsonbLocaleParserConverterBase
newLocale
-
-
-
-
Field Detail
-
UTC
private static final ZoneId UTC
-
hasTimezone
private volatile boolean hasTimezone
-
isIso
private volatile boolean isIso
-
-