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

pack-priv final Class DnsQueryEncoder

extends Object
Class Inheritance
Imports
io.netty5.buffer.Buffer, java.util.Objects

Field Summary

Modifier and TypeField and Description
private final DnsRecordEncoder

Constructor Summary

AccessConstructor and Description
pack-priv
DnsQueryEncoder(DnsRecordEncoder recordEncoder)

Creates a new encoder with the specified recordEncoder.

Method Summary

Modifier and TypeMethod and Description
pack-priv void
encode(DnsQuery query, Buffer out)

Encodes the given DnsQuery into a Buffer.

private static void
encodeHeader(DnsQuery
the query header being encoded
query
,
Buffer
the buffer the encoded data should be written to
buf
)

Encodes the header that is always 12 bytes long.

private void
private void
encodeRecords(DnsQuery query, DnsSection section, Buffer buf)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

recordEncoderback to summary
private final DnsRecordEncoder recordEncoder

Constructor Detail

DnsQueryEncoderback to summary
pack-priv DnsQueryEncoder(DnsRecordEncoder recordEncoder)

Creates a new encoder with the specified recordEncoder.

Method Detail

encodeback to summary
pack-priv void encode(DnsQuery query, Buffer out) throws Exception

Encodes the given DnsQuery into a Buffer.

encodeHeaderback to summary
private static void encodeHeader(DnsQuery query, Buffer buf)

Encodes the header that is always 12 bytes long.

Parameters
query:DnsQuery

the query header being encoded

buf:Buffer

the buffer the encoded data should be written to

encodeQuestionsback to summary
private void encodeQuestions(DnsQuery query, Buffer buf) throws Exception
encodeRecordsback to summary
private void encodeRecords(DnsQuery query, DnsSection section, Buffer buf) throws Exception