org.bcos.channel.handler.Decoder Maven / Gradle / Ivy
package org.bcos.channel.handler;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ByteToMessageDecoder;
public class Decoder extends ByteToMessageDecoder {
private static Logger logger = LoggerFactory.getLogger(Decoder.class);
private Integer dataLength = 0;
@Override
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy