Sha256: e5b2c6710fa90f6feb207cd930c4feefbd9840162eaaa39324bd2c76c21782c7
Contents?: true
Size: 1.22 KB
Versions: 164
Compression:
Stored size: 1.22 KB
Contents
package sh.calaba.org.codehaus.jackson.map.ser.std; import java.io.IOException; import sh.calaba.org.codehaus.jackson.JsonGenerationException; import sh.calaba.org.codehaus.jackson.JsonGenerator; import sh.calaba.org.codehaus.jackson.map.SerializerProvider; import sh.calaba.org.codehaus.jackson.map.TypeSerializer; /** * Intermediate base class for limited number of scalar types * that should never include type information. These are "native" * types that are default mappings for corresponding JSON scalar * types: {@link java.lang.String}, {@link java.lang.Integer}, * {@link java.lang.Double} and {@link java.lang.Boolean}. * * @since 1.9 (refactored from 'sh.calaba.org.codehaus.jackson.map.StdSerializers#NontTypedScalarSerializer') */ public abstract class NonTypedScalarSerializerBase<T> extends ScalarSerializerBase<T> { protected NonTypedScalarSerializerBase(Class<T> t) { super(t); } @Override public final void serializeWithType(T value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) throws IOException, JsonGenerationException { // no type info, just regular serialization serialize(value, jgen, provider); } }
Version data entries
164 entries across 164 versions & 2 rubygems