Example usage for com.fasterxml.jackson.databind JsonSerializer subclass-usage

List of usage examples for com.fasterxml.jackson.databind JsonSerializer subclass-usage

Introduction

In this page you can find the example usage for com.fasterxml.jackson.databind JsonSerializer subclass-usage.

Usage

From source file org.createnet.raptor.models.objects.serializer.ResultSetSerializer.java

/**
 *
 * @author Luca Capra <luca.capra@gmail.com>
 */
public class ResultSetSerializer extends JsonSerializer<ResultSet> {

From source file org.jmingo.mapping.convert.mongo.type.serialize.ObjectIdSerializer.java

/**
 * Json serializer for {@link org.bson.types.ObjectId} type.
 */
public class ObjectIdSerializer extends JsonSerializer<ObjectId> {

    /**

From source file org.dbrain.data.jackson.serializers.JsonLongSerializer.java

/**
 * Serialize long with more that 15 digits to String literal.
 *
 * This class is generic "number" as we want to use it for AtomicLong as well.
 */
public class JsonLongSerializer extends JsonSerializer<Number> {

From source file org.elasticsoftware.elasticactors.geoevents.serialization.JacksonGeoHashSerializer.java

/**
 *
 */
public final class JacksonGeoHashSerializer extends JsonSerializer<GeoHash> {
    @Override
    public void serialize(GeoHash value, JsonGenerator jgen, SerializerProvider provider) throws IOException {

From source file com.boundary.sdk.event.util.UnixTimeSerializer.java

public class UnixTimeSerializer extends JsonSerializer<Date> {

    @Override
    public void serialize(Date value, JsonGenerator gen, SerializerProvider arg2)
            throws IOException, JsonProcessingException {
        long timestamp = value.getTime();

From source file com.arpnetworking.test.junitbenchmarks.GCSnapshotSerializer.java

/**
 * Serializes a {@link GCSnapshot}.
 *
 * @author Brandon Arp (barp at groupon dot com)
 */
public class GCSnapshotSerializer extends JsonSerializer<GCSnapshot> {

From source file org.calrissian.mango.json.ser.BaseTupleStoreSerializer.java

public abstract class BaseTupleStoreSerializer<T extends TupleStore> extends JsonSerializer<T> {

    @Override
    public void serialize(T t, JsonGenerator jsonGenerator, SerializerProvider serializerProvider)
            throws IOException {

From source file org.omg.dmn.tck.marshaller._20160719.json.ValueSerializer.java

public class ValueSerializer extends JsonSerializer<Object> {

    @Override
    public void serialize(Object value, JsonGenerator gen, SerializerProvider serializers)
            throws IOException, JsonProcessingException {
        if (value instanceof Element) {

From source file com.github.tomakehurst.wiremock.matching.StringValuePatternJsonSerializer.java

public class StringValuePatternJsonSerializer extends JsonSerializer<StringValuePattern> {

    @Override
    public void serialize(StringValuePattern value, JsonGenerator gen, SerializerProvider serializers)
            throws IOException, JsonProcessingException {
        gen.writeStartObject();

From source file com.jive.myco.seyren.core.util.datetime.LocalTimeSerializer.java

public class LocalTimeSerializer extends JsonSerializer<LocalTime> {

    @Override
    public void serialize(LocalTime time, JsonGenerator gen, SerializerProvider provider)
            throws IOException, JsonProcessingException {
        gen.writeString(padWithZero(time.getHourOfDay()) + padWithZero(time.getMinuteOfHour()));