org.codehaus.jackson.map.ser.std
Class StdContainerSerializers.IndexedListSerializer
java.lang.Object
org.codehaus.jackson.map.JsonSerializer<T>
org.codehaus.jackson.map.ser.std.SerializerBase<T>
org.codehaus.jackson.map.ser.std.ContainerSerializerBase<T>
org.codehaus.jackson.map.ser.std.AsArraySerializerBase<List<?>>
org.codehaus.jackson.map.ser.std.StdContainerSerializers.IndexedListSerializer
- All Implemented Interfaces:
- ResolvableSerializer, SchemaAware
- Enclosing class:
- StdContainerSerializers
public static class StdContainerSerializers.IndexedListSerializer
- extends AsArraySerializerBase<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 |
StdContainerSerializers.IndexedListSerializer
public StdContainerSerializers.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 AsArraySerializerBase<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