org.zodiac.netty.marshallers.JsonListMarshaller Maven / Gradle / Ivy
package org.zodiac.netty.marshallers;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.zodiac.commons.util.serialize.JsonUtil;
import org.zodiac.sdk.toolkit.marshallers.Marshaller;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufInputStream;
import io.netty.buffer.ByteBufOutputStream;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.util.List;
final class JsonListMarshaller implements Marshaller, ByteBuf> {
private final ObjectMapper mapper;
JsonListMarshaller() {
this(null);
}
JsonListMarshaller(ObjectMapper mapper) {
this.mapper = mapper;
}
@Override
@SuppressWarnings("unchecked")
public List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy