public class EventObjectDecoder
extends io.netty.handler.codec.LengthFieldBasedFrameDecoder
| Modifier and Type | Class and Description |
|---|---|
static class |
EventObjectDecoder.SourceDecoder |
| Constructor and Description |
|---|
EventObjectDecoder(int maxFrameLength,
int lengthFieldOffset,
int lengthFieldLength,
int lengthAdjustment,
int initialBytesToStrip)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in) |
decode, extractFrameactualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setSingleDecodechannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredpublic EventObjectDecoder(int maxFrameLength,
int lengthFieldOffset,
int lengthFieldLength,
int lengthAdjustment,
int initialBytesToStrip)
maxFrameLength - the maximum length of the frame. If the length of the frame is
greater than this value, TooLongFrameException will be
thrown.lengthFieldOffset - the offset of the length fieldlengthFieldLength - the length of the length fieldlengthAdjustment - the compensation value to add to the value of the length fieldinitialBytesToStrip - the number of first bytes to strip out from the decoded frameCopyright © 2013. All Rights Reserved.