org.codehaus.jackson.map.ser
Class StdSerializers.StringSerializer
java.lang.Object
org.codehaus.jackson.map.JsonSerializer<T>
org.codehaus.jackson.map.ser.std.SerializerBase<T>
org.codehaus.jackson.map.ser.std.ScalarSerializerBase<T>
org.codehaus.jackson.map.ser.std.NonTypedScalarSerializerBase<String>
org.codehaus.jackson.map.ser.StdSerializers.StringSerializer
- All Implemented Interfaces:
- SchemaAware
- Enclosing class:
- StdSerializers
Deprecated. Since 1.9, use StringSerializer
instead
@Deprecated
public static final class StdSerializers.StringSerializer
- extends NonTypedScalarSerializerBase<String>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StdSerializers.StringSerializer
public StdSerializers.StringSerializer()
- Deprecated.
serialize
public void serialize(String value,
JsonGenerator jgen,
SerializerProvider provider)
throws IOException,
JsonGenerationException
- Deprecated.
- 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 SerializerBase<String>
- 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:
IOException
JsonGenerationException
getSchema
public JsonNode getSchema(SerializerProvider provider,
Type typeHint)
- Deprecated.
- 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 ScalarSerializerBase<String>
- Parameters:
provider
- The serializer provider.typeHint
- A hint about the type.
- Returns:
- Json-schema for this serializer.