org.codehaus.jackson.map.ser
Class ContainerSerializers.IndexedListSerializer
java.lang.Object
org.codehaus.jackson.map.JsonSerializer<java.util.List<?>>
org.codehaus.jackson.map.ser.ContainerSerializers.IndexedListSerializer
- Enclosing class:
- ContainerSerializers
public static final class ContainerSerializers.IndexedListSerializer
- extends JsonSerializer<java.util.List<?>>
This is an optimizied serializer for Lists that can be efficiently
traversed by index (as opposed to others, such as LinkedList
that can not}.
|
Method Summary |
void |
serialize(java.util.List<?> value,
JsonGenerator jgen,
SerializerProvider provider)
Method that can be called to ask implementation to serialize
values of type this serializer handles. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
public static final ContainerSerializers.IndexedListSerializer instance
ContainerSerializers.IndexedListSerializer
public ContainerSerializers.IndexedListSerializer()
serialize
public void serialize(java.util.List<?> value,
JsonGenerator jgen,
SerializerProvider provider)
throws java.io.IOException,
JsonGenerationException
- Description copied from class:
JsonSerializer
- Method that can be called to ask implementation to serialize
values of type this serializer handles.
- Specified by:
serialize in class JsonSerializer<java.util.List<?>>
- Parameters:
value - Value to serialize; can not be null.jgen - Generator used to output resulting Json contentprovider - Provider that can be used to get serializers for
serializing Objects value contains, if any.
- Throws:
java.io.IOException
JsonGenerationException