All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jn.agileway.codec.serialization.msgpack.MsgPackCodec Maven / Gradle / Ivy

Go to download

Provide an unified codec API for hession, kryo, protostuff, fst, fes, xson, cbor, jackson, json, etc....

There is a newer version: 3.1.12
Show newest version
package com.jn.agileway.codec.serialization.msgpack;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.jn.agileway.codec.serialization.jackson.BasedJacksonCodec;
import org.msgpack.jackson.dataformat.MessagePackFactory;

public class MsgPackCodec extends BasedJacksonCodec {
    public MsgPackCodec() {
        super(new ObjectMapper(new MessagePackFactory()));
    }

    public MsgPackCodec(ClassLoader classLoader) {
        super(createObjectMapper(classLoader, new ObjectMapper(new MessagePackFactory())));
    }

    public MsgPackCodec(ClassLoader classLoader, MsgPackCodec codec) {
        super(createObjectMapper(classLoader, codec.objectMapper.copy()));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy