@UnstableApi public interface DnsRecordDecoder
DatagramDnsResponseDecoder
Modifier and Type | Field and Description |
---|---|
static DnsRecordDecoder |
DEFAULT |
Modifier and Type | Method and Description |
---|---|
DnsQuestion |
decodeQuestion(ByteBuf in)
Decodes a DNS question into its object representation.
|
<T extends DnsRecord> |
decodeRecord(ByteBuf in)
Decodes a DNS record into its object representation.
|
static final DnsRecordDecoder DEFAULT
DnsQuestion decodeQuestion(ByteBuf in) throws java.lang.Exception
in
- the input buffer which contains a DNS question at its reader indexjava.lang.Exception
<T extends DnsRecord> T decodeRecord(ByteBuf in) throws java.lang.Exception
in
- the input buffer which contains a DNS record at its reader indexnull
if there are not enough data in the input bufferjava.lang.Exception