public final class RntbdRequestDecoder
extends io.netty.handler.codec.ByteToMessageDecoder
| Constructor and Description |
|---|
RntbdRequestDecoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
channelRead(io.netty.channel.ChannelHandlerContext context,
Object message)
Prepare for decoding an @{link RntbdRequest} or fire a channel readTree event to pass the input message along.
|
protected void |
decode(io.netty.channel.ChannelHandlerContext context,
io.netty.buffer.ByteBuf in,
List<Object> out)
Decode the input
ByteBuf to an RntbdRequest instance. |
actualReadableBytes, callDecode, channelInactive, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggeredchannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtensureNotSharable, handlerAdded, isSharablepublic void channelRead(io.netty.channel.ChannelHandlerContext context,
Object message)
throws Exception
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in class io.netty.handler.codec.ByteToMessageDecodercontext - the ChannelHandlerContext which this ByteToMessageDecoder belongs tomessage - the message to be decodedException - thrown if an error occursprotected void decode(io.netty.channel.ChannelHandlerContext context,
io.netty.buffer.ByteBuf in,
List<Object> out)
throws IllegalStateException
ByteBuf to an RntbdRequest instance.
This method will be called till either the input ByteBuf has nothing to readTree after return from this
method or till nothing was readTree from the input ByteBuf.
decode in class io.netty.handler.codec.ByteToMessageDecodercontext - the ChannelHandlerContext to which this ByteToMessageDecoder belongs.in - the ByteBuf from which to read data.out - the List to which decoded messages should be added.IllegalStateException - thrown if an error occursCopyright © 2020. All rights reserved.