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

pack-priv final Class DnsQueryEncoder

extends Object
Class Inheritance
Imports
io.netty.buffer.ByteBuf

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, ByteBuf out)

Encodes the given DnsQuery into a ByteBuf.

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

Encodes the header that is always 12 bytes long.

private void
private void
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, ByteBuf out) throws Exception

Encodes the given DnsQuery into a ByteBuf.

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

Encodes the header that is always 12 bytes long.

Parameters
query:DnsQuery

the query header being encoded

buf:ByteBuf

the buffer the encoded data should be written to

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