Deprecated
java.lang.String , java.lang.Integer ,
java.lang.Double and java.lang.Boolean .
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public final void | serializeWithType(T
Value to serialize; can not be null. value, JsonGenerator Generator used to output resulting Json content gen, SerializerProvider Provider that can be used to get serializers for
serializing Objects value contains, if any. provider, TypeSerializer Type serializer to use for including type information typeSer)Overrides com. |
| NonTypedScalarSerializerBase | back to summary |
|---|---|
| protected NonTypedScalarSerializerBase(Class<T> t) | |
| NonTypedScalarSerializerBase | back to summary |
|---|---|
| protected NonTypedScalarSerializerBase(Class<?> t, boolean bogus) | |
| serializeWithType | back to summary |
|---|---|
| public final void serializeWithType(T value, JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer) throws IOException Overrides com. Doc from com. 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.
| |