SerializationFeature#WRITE_DATES_AS_TIMESTAMPS is enabled.
| Modifier and Type | Field and Description |
|---|---|
| protected final DateTimeFormatter | _formatter
Specific format to use, if not default format: non-null value
also indicates that serialization is to be done as JSON String,
not numeric timestamp, unless |
| protected transient volatile JavaType | _integerListType
Lazily constructed |
| protected final JsonFormat. | |
| protected final Boolean | _useNanoseconds
Flag that indicates that numeric timestamp values must be written using nanosecond timestamps if the datatype supports such resolution, regardless of other settings. |
| protected final Boolean | _useTimestamp
Flag that indicates that serialization must be done as the Java timestamp, regardless of other settings. |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected | JSR310FormattedSerializerBase(JSR310FormattedSerializerBase<?> base, DateTimeFormatter dtf, Boolean useTimestamp, Boolean useNanoseconds, JsonFormat.
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected JavaType | |
| protected DateTimeFormatter | |
| protected boolean | |
| public void | acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
Overrides tools. Implements tools. Default implementation specifies no format. |
| public ValueSerializer | createContextual(SerializationContext ctxt, BeanProperty property)
Overrides tools. Method called to see if a different (or differently configured) serializer is needed to serialize values of specified property (or, for root values, in which case `null` is passed). |
| protected DateTimeFeature | getTimestampsFeature()
Overridable method that determines |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected JSR310FormattedSerializerBase | |
| protected abstract JSR310FormattedSerializerBase |
| _formatter | back to summary |
|---|---|
| protected final DateTimeFormatter _formatter Specific format to use, if not default format: non-null value
also indicates that serialization is to be done as JSON String,
not numeric timestamp, unless | |
| _integerListType | back to summary |
|---|---|
| protected transient volatile JavaType _integerListType Lazily constructed
| |
| _shape | back to summary |
|---|---|
| protected final JsonFormat. | |
| _useNanoseconds | back to summary |
|---|---|
| protected final Boolean _useNanoseconds Flag that indicates that numeric timestamp values must be written using nanosecond timestamps if the datatype supports such resolution, regardless of other settings. | |
| _useTimestamp | back to summary |
|---|---|
| protected final Boolean _useTimestamp Flag that indicates that serialization must be done as the Java timestamp, regardless of other settings. | |
| JSR310FormattedSerializerBase | back to summary |
|---|---|
| protected JSR310FormattedSerializerBase(Class<T> supportedType) | |
| JSR310FormattedSerializerBase | back to summary |
|---|---|
| protected JSR310FormattedSerializerBase(Class<T> supportedType, DateTimeFormatter formatter) | |
| JSR310FormattedSerializerBase | back to summary |
|---|---|
| protected JSR310FormattedSerializerBase(JSR310FormattedSerializerBase<?> base, DateTimeFormatter dtf, Boolean useTimestamp, Boolean useNanoseconds, JsonFormat. | |
| _acceptTimestampVisitor | back to summary |
|---|---|
| protected void _acceptTimestampVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) | |
| _integerListType | back to summary |
|---|---|
| protected JavaType _integerListType(SerializationContext ctxt) | |
| _useDateTimeFormatter | back to summary |
|---|---|
| protected DateTimeFormatter _useDateTimeFormatter(SerializationContext ctxt, JsonFormat. | |
| _useTimestampExplicitOnly | back to summary |
|---|---|
| protected boolean _useTimestampExplicitOnly(SerializationContext ctxt) | |
| acceptJsonFormatVisitor | back to summary |
|---|---|
| public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) Overrides tools. Implements tools. Doc from tools. Default implementation specifies no format. This behavior is usually overriden by custom serializers.
| |
| createContextual | back to summary |
|---|---|
| public ValueSerializer Overrides tools. Doc from tools. Method called to see if a different (or differently configured) serializer is needed to serialize values of specified property (or, for root values, in which case `null` is passed). Note that instance that this method is called on is typically shared one and as a result method should NOT modify this instance but rather construct and return a new instance. This instance should only be returned as-is, in case it is already suitable for use. Note that method is only called once per POJO property, and for the first usage as root value serializer; it is not called for every serialization, as doing that would have significant performance impact; most serializers cache contextual instances for future use.
| |
| getTimestampsFeature | back to summary |
|---|---|
| protected DateTimeFeature getTimestampsFeature() Overridable method that determines Note that this feature is just the baseline setting and may be overridden on per-type or per-property basis.
| |
| useNanoseconds | back to summary |
|---|---|
| protected boolean useNanoseconds(SerializationContext ctxt) | |
| useTimestamp | back to summary |
|---|---|
| protected boolean useTimestamp(SerializationContext ctxt) | |
| useTimestampFromGlobalDefaults | back to summary |
|---|---|
| protected boolean useTimestampFromGlobalDefaults(SerializationContext ctxt) | |
| withFeatures | back to summary |
|---|---|
| protected JSR310FormattedSerializerBase | |
| withFormat | back to summary |
|---|---|
| protected abstract JSR310FormattedSerializerBase | |