com.jn.agileway.codec.serialization.msgpack.MsgPackCodec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of agileway-codec Show documentation
Show all versions of agileway-codec Show documentation
Provide an unified codec API for hession, kryo, protostuff, fst, fes, xson, cbor, jackson, json, etc....
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