@UnstableApi public class DefaultDnsRecordEncoder extends java.lang.Object implements DnsRecordEncoder
DnsRecordEncoder implementation.DefaultDnsRecordDecoderDEFAULT| 限定符 | 构造器和说明 |
|---|---|
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
DnsRecordEncoderDnsQuestion.encodeQuestion 在接口中 DnsRecordEncoderout - the output buffer where the encoded question will be written tojava.lang.Exceptionpublic void encodeRecord(DnsRecord record, ByteBuf out) throws java.lang.Exception
DnsRecordEncoderDnsRecord.encodeRecord 在接口中 DnsRecordEncoderout - the output buffer where the encoded record will be written tojava.lang.Exceptionprotected void encodeName(java.lang.String name,
ByteBuf buf)
throws java.lang.Exception
java.lang.Exception