org.codehaus.jackson.map.ser.std
Class StdArraySerializers.LongArraySerializer

java.lang.Object
  extended by org.codehaus.jackson.map.JsonSerializer<T>
      extended by org.codehaus.jackson.map.ser.std.SerializerBase<T>
          extended by org.codehaus.jackson.map.ser.std.ContainerSerializerBase<T>
              extended by org.codehaus.jackson.map.ser.std.StdArraySerializers.ArraySerializerBase<long[]>
                  extended by org.codehaus.jackson.map.ser.std.StdArraySerializers.LongArraySerializer
All Implemented Interfaces:
SchemaAware
Enclosing class:
StdArraySerializers

public static final class StdArraySerializers.LongArraySerializer
extends StdArraySerializers.ArraySerializerBase<long[]>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.jackson.map.JsonSerializer
JsonSerializer.None
 
Field Summary
 
Fields inherited from class org.codehaus.jackson.map.ser.std.StdArraySerializers.ArraySerializerBase
_property, _valueTypeSerializer
 
Fields inherited from class org.codehaus.jackson.map.ser.std.SerializerBase
_handledType
 
Constructor Summary
StdArraySerializers.LongArraySerializer()
           
StdArraySerializers.LongArraySerializer(TypeSerializer vts)
           
 
Method Summary
 ContainerSerializerBase<?> _withValueTypeSerializer(TypeSerializer vts)
           
 JsonNode getSchema(SerializerProvider provider, Type typeHint)
          Note: since Jackson 1.9, default implementation claims type is "string"
 void serializeContents(long[] value, JsonGenerator jgen, SerializerProvider provider)
           
 
Methods inherited from class org.codehaus.jackson.map.ser.std.StdArraySerializers.ArraySerializerBase
serialize, serializeWithType
 
Methods inherited from class org.codehaus.jackson.map.ser.std.ContainerSerializerBase
withValueTypeSerializer
 
Methods inherited from class org.codehaus.jackson.map.ser.std.SerializerBase
createObjectNode, createSchemaNode, createSchemaNode, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrow, wrapAndThrow, wrapAndThrow
 
Methods inherited from class org.codehaus.jackson.map.JsonSerializer
isUnwrappingSerializer, unwrappingSerializer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdArraySerializers.LongArraySerializer

public StdArraySerializers.LongArraySerializer()

StdArraySerializers.LongArraySerializer

public StdArraySerializers.LongArraySerializer(TypeSerializer vts)
Method Detail

_withValueTypeSerializer

public ContainerSerializerBase<?> _withValueTypeSerializer(TypeSerializer vts)
Specified by:
_withValueTypeSerializer in class ContainerSerializerBase<long[]>

serializeContents

public void serializeContents(long[] value,
                              JsonGenerator jgen,
                              SerializerProvider provider)
                       throws IOException,
                              JsonGenerationException
Specified by:
serializeContents in class StdArraySerializers.ArraySerializerBase<long[]>
Throws:
IOException
JsonGenerationException

getSchema

public JsonNode getSchema(SerializerProvider provider,
                          Type typeHint)
Description copied from class: SerializerBase
Note: since Jackson 1.9, default implementation claims type is "string"

Specified by:
getSchema in interface SchemaAware
Overrides:
getSchema in class SerializerBase<long[]>
Parameters:
provider - The serializer provider.
typeHint - A hint about the type.
Returns:
Json-schema for this serializer.