public static final class StdArraySerializers.IntArraySerializer extends StdArraySerializers.ArraySerializerBase<int[]>
JsonSerializer.None
_property, _valueTypeSerializer
_handledType
Constructor and Description |
---|
StdArraySerializers.IntArraySerializer() |
Modifier and Type | Method and Description |
---|---|
ContainerSerializerBase<?> |
_withValueTypeSerializer(TypeSerializer vts)
Ints never add type info; hence, even if type serializer is suggested,
we'll ignore it...
|
JsonNode |
getSchema(SerializerProvider provider,
Type typeHint)
Note: since Jackson 1.9, default implementation claims type is "string"
|
void |
serializeContents(int[] value,
JsonGenerator jgen,
SerializerProvider provider) |
serialize, serializeWithType
withValueTypeSerializer
createObjectNode, createSchemaNode, createSchemaNode, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrow, wrapAndThrow, wrapAndThrow
isUnwrappingSerializer, unwrappingSerializer
public StdArraySerializers.IntArraySerializer()
public ContainerSerializerBase<?> _withValueTypeSerializer(TypeSerializer vts)
_withValueTypeSerializer
in class ContainerSerializerBase<int[]>
public void serializeContents(int[] value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonGenerationException
serializeContents
in class StdArraySerializers.ArraySerializerBase<int[]>
IOException
JsonGenerationException
public JsonNode getSchema(SerializerProvider provider, Type typeHint)
SerializerBase
getSchema
in interface SchemaAware
getSchema
in class SerializerBase<int[]>
provider
- The serializer provider.typeHint
- A hint about the type.