com.jn.agileway.codec.serialization.cbor.CborJacksonCodec Maven / Gradle / Ivy
package com.jn.agileway.codec.serialization.cbor;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.cbor.CBORFactory;
import com.jn.agileway.codec.serialization.jackson.BasedJacksonCodec;
public class CborJacksonCodec extends BasedJacksonCodec {
public CborJacksonCodec() {
super(new ObjectMapper(new CBORFactory()));
}
public CborJacksonCodec(ClassLoader classLoader) {
super(createObjectMapper(classLoader, new ObjectMapper(new CBORFactory())));
}
public CborJacksonCodec(ClassLoader classLoader, CborJacksonCodec codec) {
super(createObjectMapper(classLoader, codec.objectMapper.copy()));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy