Package io.netty.handler.codec.dns
Class DefaultDnsRecordEncoder
- java.lang.Object
-
- io.netty.handler.codec.dns.DefaultDnsRecordEncoder
-
- All Implemented Interfaces:
DnsRecordEncoder
public class DefaultDnsRecordEncoder extends java.lang.Object implements DnsRecordEncoder
The defaultDnsRecordEncoderimplementation.- See Also:
DefaultDnsRecordDecoder
-
-
Field Summary
-
Fields inherited from interface io.netty.handler.codec.dns.DnsRecordEncoder
DEFAULT
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultDnsRecordEncoder()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidencodeName(java.lang.String name, ByteBuf buf)voidencodeQuestion(DnsQuestion question, ByteBuf out)Encodes aDnsQuestion.voidencodeRecord(DnsRecord record, ByteBuf out)Encodes aDnsRecord.
-
-
-
Method Detail
-
encodeQuestion
public final void encodeQuestion(DnsQuestion question, ByteBuf out) throws java.lang.Exception
Description copied from interface:DnsRecordEncoderEncodes aDnsQuestion.- Specified by:
encodeQuestionin interfaceDnsRecordEncoderout- the output buffer where the encoded question will be written to- Throws:
java.lang.Exception
-
encodeRecord
public void encodeRecord(DnsRecord record, ByteBuf out) throws java.lang.Exception
Description copied from interface:DnsRecordEncoderEncodes aDnsRecord.- Specified by:
encodeRecordin interfaceDnsRecordEncoderout- the output buffer where the encoded record will be written to- Throws:
java.lang.Exception
-
encodeName
protected void encodeName(java.lang.String name, ByteBuf buf) throws java.lang.Exception- Throws:
java.lang.Exception
-
-