| Access | Constructor and Description |
|---|---|
| protected | |
| protected | StdScalarSerializer(Class<?> t, boolean dummy)
Alternate constructor that is (alas!) needed to work around kinks of generic type handling |
| protected | StdScalarSerializer(StdScalarSerializer<?>
Original instance to copy settings from src)Basic copy-constructor |
| Modifier and Type | Method and Description |
|---|---|
| public void | acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
Overrides tools. Implements tools. Default implementation specifies no format. |
| public void | serializeWithType(T value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer)
Overrides tools. Default implementation will write type prefix, call regular serialization method (since assumption is that value itself does not need JSON Array or Object start/end markers), and then write type suffix. |
| StdScalarSerializer | back to summary |
|---|---|
| protected StdScalarSerializer(Class<T> t) | |
| StdScalarSerializer | back to summary |
|---|---|
| protected StdScalarSerializer(Class<?> t, boolean dummy) Alternate constructor that is (alas!) needed to work around kinks of generic type handling
| |
| StdScalarSerializer | back to summary |
|---|---|
| protected StdScalarSerializer(StdScalarSerializer<?> src) Basic copy-constructor
| |
| acceptJsonFormatVisitor | back to summary |
|---|---|
| public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) Overrides tools. Implements tools. Doc from tools. Default implementation specifies no format. This behavior is usually overriden by custom serializers.
| |
| serializeWithType | back to summary |
|---|---|
| public void serializeWithType(T value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) throws JacksonException Overrides tools. Default implementation will write type prefix, call regular serialization method (since assumption is that value itself does not need JSON Array or Object start/end markers), and then write type suffix. This should work for most cases; some sub-classes may want to change this behavior.
| |