@UnstableApi public class DefaultDnsRecordEncoder extends Object implements DnsRecordEncoder
DnsRecordEncoder
implementation.DefaultDnsRecordDecoder
DEFAULT
Modifier | Constructor and Description |
---|---|
protected |
DefaultDnsRecordEncoder()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
encodeName(String name,
ByteBuf buf) |
void |
encodeQuestion(DnsQuestion question,
ByteBuf out)
Encodes a
DnsQuestion . |
void |
encodeRecord(DnsRecord record,
ByteBuf out)
Encodes a
DnsRecord . |
protected DefaultDnsRecordEncoder()
public final void encodeQuestion(DnsQuestion question, ByteBuf out) throws Exception
DnsRecordEncoder
DnsQuestion
.encodeQuestion
in interface DnsRecordEncoder
out
- the output buffer where the encoded question will be written toException
public void encodeRecord(DnsRecord record, ByteBuf out) throws Exception
DnsRecordEncoder
DnsRecord
.encodeRecord
in interface DnsRecordEncoder
out
- the output buffer where the encoded record will be written toException
Copyright © 2008–2017 The Netty Project. All rights reserved.