Top Fields Constructors Methods
io.netty5.handler.codec.dns

public final Class TcpDnsQueryDecoder

extends LengthFieldBasedFrameDecoder
Class Inheritance
Annotations
@UnstableApi
Imports
io.netty5.buffer.Buffer, io.netty5.channel.ChannelHandlerContext, io.netty5.handler.codec.LengthFieldBasedFrameDecoder, io.netty5.util.internal.UnstableApi

Field Summary

Modifier and TypeField and Description
private final DnsRecordDecoder

Constructor Summary

AccessConstructor and Description
public
TcpDnsQueryDecoder()

Creates a new decoder with the default record decoder.

public
TcpDnsQueryDecoder(DnsRecordDecoder decoder, int maxFrameLength)

Creates a new decoder with the specified decoder.

Method Summary

Modifier and TypeMethod and Description
protected Object
decode0(ChannelHandlerContext ctx, Buffer
the Buffer from which to read data
in
)

Overrides io.netty5.handler.codec.LengthFieldBasedFrameDecoder.decode0.

Create a frame out of the Buffer and return it.
Inherited from io.netty5.handler.codec.LengthFieldBasedFrameDecoder:
decodeextractFramegetUnadjustedFrameLength

Field Detail

decoderback to summary
private final DnsRecordDecoder decoder

Constructor Detail

TcpDnsQueryDecoderback to summary
public TcpDnsQueryDecoder()

Creates a new decoder with the default record decoder.

TcpDnsQueryDecoderback to summary
public TcpDnsQueryDecoder(DnsRecordDecoder decoder, int maxFrameLength)

Creates a new decoder with the specified decoder.

Method Detail

decode0back to summary
protected Object decode0(ChannelHandlerContext ctx, Buffer in) throws Exception

Overrides io.netty5.handler.codec.LengthFieldBasedFrameDecoder.decode0.

Doc from io.netty5.handler.codec.LengthFieldBasedFrameDecoder.decode0.

Create a frame out of the Buffer and return it.

Parameters
ctx:ChannelHandlerContext

the ChannelHandlerContext which this ByteToMessageDecoder belongs to

in:Buffer

the Buffer from which to read data

Returns:Object

the Buffer which represent the frame or null if no frame could be created.

Annotations
@Override