Class DefaultDnsRecordEncoder
java.lang.Object
io.netty.handler.codec.dns.DefaultDnsRecordEncoder
- All Implemented Interfaces:
DnsRecordEncoder
The default
DnsRecordEncoder implementation.- See Also:
-
Field Summary
Fields inherited from interface DnsRecordEncoder
DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidencodeName(String name, ByteBuf buf) final voidencodeQuestion(DnsQuestion question, ByteBuf out) Encodes aDnsQuestion.voidencodeRecord(DnsRecord record, ByteBuf out) Encodes aDnsRecord.
-
Constructor Details
-
DefaultDnsRecordEncoder
protected DefaultDnsRecordEncoder()Creates a new instance.
-
-
Method Details
-
encodeQuestion
Description copied from interface:DnsRecordEncoderEncodes aDnsQuestion.- Specified by:
encodeQuestionin interfaceDnsRecordEncoder- Parameters:
out- the output buffer where the encoded question will be written to- Throws:
Exception
-
encodeRecord
Description copied from interface:DnsRecordEncoderEncodes aDnsRecord.- Specified by:
encodeRecordin interfaceDnsRecordEncoder- Parameters:
out- the output buffer where the encoded record will be written to- Throws:
Exception
-
encodeName
-