Top Constructors Methods
tools.jackson.databind.ser.jdk

public Class TimeZoneSerializer

extends StdScalarSerializer<TimeZone>
Class Inheritance
Imports
java.util.TimeZone, tools.jackson.core.*, tools.jackson.core.type.WritableTypeId, tools.jackson.databind.SerializationContext, tools.jackson.databind.jsontype.TypeSerializer, tools.jackson.databind.ser.std.StdScalarSerializer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
serialize(TimeZone value, JsonGenerator g, SerializationContext provider)

Implements abstract tools.jackson.databind.ser.std.StdSerializer.serialize.

Method that can be called to ask implementation to serialize values of type this serializer handles.

public void
serializeWithType(TimeZone value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer)

Overrides tools.jackson.databind.ser.std.StdScalarSerializer.serializeWithType.

Default implementation will write type prefix, call regular serialization method (since assumption is that value itself does not need JSON Array or Object start/end markers), and then write type suffix.

Inherited from tools.jackson.databind.ser.std.StdScalarSerializer:
acceptJsonFormatVisitor

Constructor Detail

TimeZoneSerializerback to summary
public TimeZoneSerializer()

Method Detail

serializeback to summary
public void serialize(TimeZone value, JsonGenerator g, SerializationContext provider) throws JacksonException

Implements abstract tools.jackson.databind.ser.std.StdSerializer.serialize.

Doc from tools.jackson.databind.ValueSerializer.serialize.

Method that can be called to ask implementation to serialize values of type this serializer handles.

Annotations
@Override
serializeWithTypeback to summary
public void serializeWithType(TimeZone value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) throws JacksonException

Overrides tools.jackson.databind.ser.std.StdScalarSerializer.serializeWithType.

Doc from tools.jackson.databind.ser.std.StdScalarSerializer.serializeWithType.

Default implementation will write type prefix, call regular serialization method (since assumption is that value itself does not need JSON Array or Object start/end markers), and then write type suffix. This should work for most cases; some sub-classes may want to change this behavior.

Annotations
@Override