org.codehaus.jackson.map.ser
Class ArraySerializers.IntArraySerializer
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.ArraySerializers.IntArraySerializer
- All Implemented Interfaces:
- SchemaAware
- Enclosing class:
- ArraySerializers
public static final class ArraySerializers.IntArraySerializer
- extends ContainerSerializerBase<T>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArraySerializers.IntArraySerializer
public ArraySerializers.IntArraySerializer()
_withValueTypeSerializer
public ContainerSerializerBase<?> _withValueTypeSerializer(TypeSerializer vts)
- Ints never add type info; hence, even if type serializer is suggested,
we'll ignore it...
- Specified by:
_withValueTypeSerializer
in class ContainerSerializerBase<int[]>
serializeContents
public void serializeContents(int[] value,
JsonGenerator jgen,
SerializerProvider provider)
throws IOException,
JsonGenerationException
- Throws:
IOException
JsonGenerationException
getSchema
public JsonNode getSchema(SerializerProvider provider,
Type typeHint)
- Description copied from interface:
SchemaAware
- Get the representation of the schema to which this serializer will conform.
- Specified by:
getSchema
in interface SchemaAware
- Specified by:
getSchema
in class SerializerBase<int[]>
- Parameters:
provider
- The serializer provider.typeHint
- A hint about the type.
- Returns:
- Json-schema for this serializer.