- java.lang.Object
-
- io.netty5.handler.codec.dns.DefaultDnsRecordEncoder
-
- All Implemented Interfaces:
DnsRecordEncoder
@UnstableApi public class DefaultDnsRecordEncoder extends Object implements DnsRecordEncoder
The defaultDnsRecordEncoder
implementation.- See Also:
DefaultDnsRecordDecoder
-
-
Field Summary
-
Fields inherited from interface io.netty5.handler.codec.dns.DnsRecordEncoder
DEFAULT
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultDnsRecordEncoder()
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
encodeName(String name, Buffer buf)
void
encodeQuestion(DnsQuestion question, Buffer out)
Encodes aDnsQuestion
.void
encodeRecord(DnsRecord record, Buffer out)
Encodes aDnsRecord
.
-
-
-
Method Detail
-
encodeQuestion
public final void encodeQuestion(DnsQuestion question, Buffer out) throws Exception
Description copied from interface:DnsRecordEncoder
Encodes aDnsQuestion
.- Specified by:
encodeQuestion
in interfaceDnsRecordEncoder
out
- the output buffer where the encoded question will be written to- Throws:
Exception
-
encodeRecord
public void encodeRecord(DnsRecord record, Buffer out) throws Exception
Description copied from interface:DnsRecordEncoder
Encodes aDnsRecord
.- Specified by:
encodeRecord
in interfaceDnsRecordEncoder
out
- the output buffer where the encoded record will be written to- Throws:
Exception
-
-