com.fasterxml.jackson.databind.ser.std.StdScalarSerializer.java Source code

Java tutorial

Introduction

Here is the source code for com.fasterxml.jackson.databind.ser.std.StdScalarSerializer.java

Source

package com.fasterxml.jackson.databind.ser.std;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.jsontype.TypeSerializer;

public abstract class StdScalarSerializer<T> extends StdSerializer<T> {
    protected StdScalarSerializer(Class<T> paramClass) {
        super(paramClass);
    }

    protected StdScalarSerializer(Class<?> paramClass, boolean paramBoolean) {
        super(paramClass);
    }

    public void serializeWithType(T paramT, JsonGenerator paramJsonGenerator,
            SerializerProvider paramSerializerProvider, TypeSerializer paramTypeSerializer) {
        paramTypeSerializer.writeTypePrefixForScalar(paramT, paramJsonGenerator);
        serialize(paramT, paramJsonGenerator, paramSerializerProvider);
        paramTypeSerializer.writeTypeSuffixForScalar(paramT, paramJsonGenerator);
    }
}

/* Location:           /Users/dantheman/src/fffffffffattttt/basis/classes_dex2jar.jar
 * Qualified Name:     com.fasterxml.jackson.databind.ser.std.StdScalarSerializer
 * JD-Core Version:    0.6.2
 */