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

public Interface DnsRecordEncoder

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

Encodes a DnsRecord into binary representation.
See Also
DatagramDnsQueryEncoder

Field Summary

Modifier and TypeField and Description
public static final DnsRecordEncoder

Method Summary

Modifier and TypeMethod and Description
public void
encodeQuestion(DnsQuestion question, Buffer
the output buffer where the encoded question will be written to
out
)

Encodes a DnsQuestion.

public void
encodeRecord(DnsRecord record, Buffer
the output buffer where the encoded record will be written to
out
)

Encodes a DnsRecord.

Field Detail

DEFAULTback to summary
public static final DnsRecordEncoder DEFAULT

Method Detail

encodeQuestionback to summary
public void encodeQuestion(DnsQuestion question, Buffer out) throws Exception

Encodes a DnsQuestion.

Parameters
out:Buffer

the output buffer where the encoded question will be written to

encodeRecordback to summary
public void encodeRecord(DnsRecord record, Buffer out) throws Exception

Encodes a DnsRecord.

Parameters
out:Buffer

the output buffer where the encoded record will be written to