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

public Interface DnsRecordDecoder

Known Direct Implementers
io.netty5.handler.codec.dns.DefaultDnsRecordDecoder
Annotations
@UnstableApi
Imports
io.netty5.buffer.Buffer, .BufferAllocator, io.netty5.util.internal.UnstableApi

Decodes a DNS record into its object representation.
See Also
DatagramDnsResponseDecoder

Field Summary

Modifier and TypeField and Description
public static final DnsRecordDecoder

Method Summary

Modifier and TypeMethod and Description
public DnsQuestion
decodeQuestion(Buffer
the input buffer which contains a DNS question at its reader index
in
)

Decodes a DNS question into its object representation.

public <T extends DnsRecord> T

Returns:

the decoded record, or null if there are not enough data in the input buffer
decodeRecord
(BufferAllocator allocator, Buffer
the input buffer which contains a DNS record at its reader index
in
)

Decodes a DNS record into its object representation.

Field Detail

DEFAULTback to summary
public static final DnsRecordDecoder DEFAULT

Method Detail

decodeQuestionback to summary
public DnsQuestion decodeQuestion(Buffer in) throws Exception

Decodes a DNS question into its object representation.

Parameters
in:Buffer

the input buffer which contains a DNS question at its reader index

decodeRecordback to summary
public <T extends DnsRecord> T decodeRecord(BufferAllocator allocator, Buffer in) throws Exception

Decodes a DNS record into its object representation.

Parameters
in:Buffer

the input buffer which contains a DNS record at its reader index

Returns:T

the decoded record, or null if there are not enough data in the input buffer