public class PacketCompressor
extends io.netty.handler.codec.ByteToMessageCodec<io.netty.buffer.ByteBuf>
| Constructor and Description |
|---|
PacketCompressor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
java.util.List<java.lang.Object> out) |
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
io.netty.buffer.ByteBuf out) |
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
void |
handlerRemoved(io.netty.channel.ChannelHandlerContext ctx) |
acceptOutboundMessage, channelInactive, channelRead, channelReadComplete, decodeLast, writebind, close, connect, deregister, disconnect, flush, readchannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredpublic void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
throws java.lang.Exception
handlerAdded in interface io.netty.channel.ChannelHandlerhandlerAdded in class io.netty.handler.codec.ByteToMessageCodec<io.netty.buffer.ByteBuf>java.lang.Exceptionpublic void handlerRemoved(io.netty.channel.ChannelHandlerContext ctx)
throws java.lang.Exception
handlerRemoved in interface io.netty.channel.ChannelHandlerhandlerRemoved in class io.netty.handler.codec.ByteToMessageCodec<io.netty.buffer.ByteBuf>java.lang.Exceptionprotected void decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
java.util.List<java.lang.Object> out)
throws java.lang.Exception
decode in class io.netty.handler.codec.ByteToMessageCodec<io.netty.buffer.ByteBuf>java.lang.Exceptionprotected void encode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
io.netty.buffer.ByteBuf out)
encode in class io.netty.handler.codec.ByteToMessageCodec<io.netty.buffer.ByteBuf>