public final class TcpDnsResponseDecoder
extends io.netty.handler.codec.LengthFieldBasedFrameDecoder
| Constructor and Description |
|---|
TcpDnsResponseDecoder()
Creates a new decoder with the default record decoder.
|
TcpDnsResponseDecoder(DnsRecordDecoder recordDecoder,
int maxFrameLength)
Creates a new decoder with the specified
recordDecoder and maxFrameLength |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in) |
protected io.netty.buffer.ByteBuf |
extractFrame(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf buffer,
int index,
int length) |
decode, getUnadjustedFrameLengthactualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggeredchannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtensureNotSharable, handlerAdded, isSharablepublic TcpDnsResponseDecoder()
public TcpDnsResponseDecoder(DnsRecordDecoder recordDecoder, int maxFrameLength)
recordDecoder and maxFrameLengthprotected Object decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in) throws Exception
decode in class io.netty.handler.codec.LengthFieldBasedFrameDecoderExceptionprotected io.netty.buffer.ByteBuf extractFrame(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf buffer,
int index,
int length)
extractFrame in class io.netty.handler.codec.LengthFieldBasedFrameDecoderCopyright © 2008–2025 The Netty Project. All rights reserved.