org.codehaus.jackson.map.ser
Class ContainerSerializers.CollectionSerializer
java.lang.Object
org.codehaus.jackson.map.JsonSerializer<T>
org.codehaus.jackson.map.ser.SerializerBase<T>
org.codehaus.jackson.map.ser.ContainerSerializerBase<T>
org.codehaus.jackson.map.ser.ContainerSerializers.CollectionSerializer
- All Implemented Interfaces:
- ResolvableSerializer, SchemaAware
- Enclosing class:
- ContainerSerializers
public static class ContainerSerializers.CollectionSerializer
- extends ContainerSerializerBase<T>
Fallback serializer for cases where Collection is not known to be
of type for which more specializer serializer exists (such as
index-accessible List).
If so, we will just construct an Iterator
to iterate over elements.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
public static final ContainerSerializers.CollectionSerializer instance
ContainerSerializers.CollectionSerializer
public ContainerSerializers.CollectionSerializer(JavaType elemType,
boolean staticTyping,
TypeSerializer vts)
_withValueTypeSerializer
public ContainerSerializerBase<?> _withValueTypeSerializer(TypeSerializer vts)
- Specified by:
_withValueTypeSerializer
in class ContainerSerializerBase<Collection<?>>
serializeContents
public void serializeContents(Collection<?> value,
JsonGenerator jgen,
SerializerProvider provider)
throws IOException,
JsonGenerationException
- Throws:
IOException
JsonGenerationException
serializeContentsUsing
public void serializeContentsUsing(Collection<?> value,
JsonGenerator jgen,
SerializerProvider provider,
JsonSerializer<Object> ser)
throws IOException,
JsonGenerationException
- Throws:
IOException
JsonGenerationException