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

public Class InetSocketAddressSerializer

extends StdScalarSerializer<InetSocketAddress>
Class Inheritance
Imports
java.net.*, tools.jackson.core.JacksonException, .JsonGenerator, .JsonToken, tools.jackson.core.type.WritableTypeId, tools.jackson.databind.SerializationContext, tools.jackson.databind.jsontype.TypeSerializer, tools.jackson.databind.ser.std.StdScalarSerializer

Simple serializer for InetSocketAddress.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
serialize(InetSocketAddress value, JsonGenerator jgen, 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(InetSocketAddress 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

InetSocketAddressSerializerback to summary
public InetSocketAddressSerializer()

Method Detail

serializeback to summary
public void serialize(InetSocketAddress value, JsonGenerator jgen, 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(InetSocketAddress 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