-
- All Known Implementing Classes:
DefaultDnsRecordDecoder
@UnstableApi public interface DnsRecordDecoder
Decodes a DNS record into its object representation.- See Also:
DatagramDnsResponseDecoder
-
-
Field Summary
Fields Modifier and Type Field Description static DnsRecordDecoder
DEFAULT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DnsQuestion
decodeQuestion(Buffer in)
Decodes a DNS question into its object representation.<T extends DnsRecord>
TdecodeRecord(BufferAllocator allocator, Buffer in)
Decodes a DNS record into its object representation.
-
-
-
Field Detail
-
DEFAULT
static final DnsRecordDecoder DEFAULT
-
-
Method Detail
-
decodeQuestion
DnsQuestion decodeQuestion(Buffer in) throws Exception
Decodes a DNS question into its object representation.- Parameters:
in
- the input buffer which contains a DNS question at its reader index- Throws:
Exception
-
decodeRecord
<T extends DnsRecord> T decodeRecord(BufferAllocator allocator, Buffer in) throws Exception
Decodes a DNS record into its object representation.- Parameters:
allocator
-in
- the input buffer which contains a DNS record at its reader index- Returns:
- the decoded record, or
null
if there are not enough data in the input buffer - Throws:
Exception
-
-