org.codehaus.jackson.map.ser
Class ContainerSerializers.IndexedListSerializer
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.AsArraySerializer<List<?>>
org.codehaus.jackson.map.ser.ContainerSerializers.IndexedListSerializer
- All Implemented Interfaces:
- ResolvableSerializer, SchemaAware
- Enclosing class:
- ContainerSerializers
public static class ContainerSerializers.IndexedListSerializer
- extends ContainerSerializers.AsArraySerializer<List<?>>
This is an optimized serializer for Lists that can be efficiently
traversed by index (as opposed to others, such as LinkedList
that can not}.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContainerSerializers.IndexedListSerializer
public ContainerSerializers.IndexedListSerializer(JavaType elemType,
boolean staticTyping,
TypeSerializer vts,
BeanProperty property,
JsonSerializer<Object> valueSerializer)
_withValueTypeSerializer
public ContainerSerializerBase<?> _withValueTypeSerializer(TypeSerializer vts)
- Specified by:
_withValueTypeSerializer
in class ContainerSerializerBase<List<?>>
serializeContents
public void serializeContents(List<?> value,
JsonGenerator jgen,
SerializerProvider provider)
throws IOException,
JsonGenerationException
- Specified by:
serializeContents
in class ContainerSerializers.AsArraySerializer<List<?>>
- Throws:
IOException
JsonGenerationException
serializeContentsUsing
public void serializeContentsUsing(List<?> value,
JsonGenerator jgen,
SerializerProvider provider,
JsonSerializer<Object> ser)
throws IOException,
JsonGenerationException
- Throws:
IOException
JsonGenerationException
serializeTypedContents
public void serializeTypedContents(List<?> value,
JsonGenerator jgen,
SerializerProvider provider)
throws IOException,
JsonGenerationException
- Throws:
IOException
JsonGenerationException