Example usage for io.netty.handler.codec ByteToMessageDecoder subclass-usage

List of usage examples for io.netty.handler.codec ByteToMessageDecoder subclass-usage

Introduction

In this page you can find the example usage for io.netty.handler.codec ByteToMessageDecoder subclass-usage.

Usage

From source file com.mnt.base.stream.netty.NStreamDecoder.java

/**
 * Decoder class that parses ByteBuffers and generates string package. Generated
 * package are then passed to the next filters.
 *
 * @author Peng Peng
 */

From source file com.mobius.software.android.iotbroker.mqtt.net.MQDecoder.java

public class MQDecoder extends ByteToMessageDecoder {
    @Override
    protected void decode(ChannelHandlerContext ctx, ByteBuf buf, List<Object> out) throws Exception {
        ByteBuf nextHeader = null;
        do {
            if (buf.readableBytes() > 1)

From source file com.mobius.software.mqtt.performance.controller.net.Decoder.java

public class Decoder extends ByteToMessageDecoder {
    @Override
    protected void decode(ChannelHandlerContext ctx, ByteBuf buf, List<Object> out) {
        ByteBuf nextHeader = null;
        do {
            if (buf.readableBytes() > 1) {

From source file com.mpush.netty.codec.PacketDecoder.java

/**
 * Created by ohun on 2015/12/19.
 * length(4)+cmd(1)+cc(2)+flags(1)+sessionId(4)+lrc(1)+body(n)
 *
 * @author ohun@live.cn
 */

From source file com.myseti.framework.monitor.net.DecodeProtocol.java

/**
 *
 * @author blue
 */
public class DecodeProtocol extends ByteToMessageDecoder {

From source file com.necla.simba.server.gateway.server.backend.BackendFrameDecoder.java

public class BackendFrameDecoder extends ByteToMessageDecoder {
    private static final Logger LOG = LoggerFactory.getLogger(BackendFrameDecoder.class);

    @Override
    protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {

From source file com.necla.simba.server.gateway.server.frontend.FrontendFrameDecoder.java

public class FrontendFrameDecoder extends ByteToMessageDecoder {
    private static final Logger LOG = LoggerFactory.getLogger(FrontendFrameDecoder.class);

    private final Inflater inflater = new Inflater();

    @Override

From source file com.netflix.iep.http.NetflixJsonObjectDecoder.java

/**
 * Splits a byte stream of JSON objects and arrays into individual objects/arrays and passes them up the
 * {@link ChannelPipeline}.
 *
 * This class does not do any real parsing or validation. A sequence of bytes is considered a JSON object/array
 * if it contains a matching number of opening and closing braces/brackets. It's up to a subsequent

From source file com.netty.test.LengthFieldBasedExFrameDecoder.java

/**
 * A decoder that splits the received {@link ByteBuf}s dynamically by the
 * value of the length field in the message.  It is particularly useful when you
 * decode a binary message which has an integer header field that represents the
 * length of the message body or the whole message.
 * <p>

From source file com.newlandframework.avatarmq.netty.MessageObjectDecoder.java

/**
 * @filename:MessageObjectDecoder.java
 * @description:MessageObjectDecoder?
 * @author tangjie<https://github.com/tang-jie>
 * @blog http://www.cnblogs.com/jietang/
 * @since 2016-8-11