@UnstableApi public class DefaultDnsRecordEncoder extends java.lang.Object implements DnsRecordEncoder
DnsRecordEncoder
implementation.DefaultDnsRecordDecoder
DEFAULT
限定符 | 构造器和说明 |
---|---|
protected |
DefaultDnsRecordEncoder()
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
encodeName(java.lang.String name,
ByteBuf buf) |
void |
encodeQuestion(DnsQuestion question,
ByteBuf out)
Encodes a
DnsQuestion . |
void |
encodeRecord(DnsRecord record,
ByteBuf out)
Encodes a
DnsRecord . |
public final void encodeQuestion(DnsQuestion question, ByteBuf out) throws java.lang.Exception
DnsRecordEncoder
DnsQuestion
.encodeQuestion
在接口中 DnsRecordEncoder
out
- the output buffer where the encoded question will be written tojava.lang.Exception
public void encodeRecord(DnsRecord record, ByteBuf out) throws java.lang.Exception
DnsRecordEncoder
DnsRecord
.encodeRecord
在接口中 DnsRecordEncoder
out
- the output buffer where the encoded record will be written tojava.lang.Exception
protected void encodeName(java.lang.String name, ByteBuf buf) throws java.lang.Exception
java.lang.Exception