Package io.netty.handler.codec.dns
Interface DnsRecordDecoder
- All Known Implementing Classes:
DefaultDnsRecordDecoder
public interface DnsRecordDecoder
Decodes a DNS record into its object representation.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionDecodes a DNS question into its object representation.<T extends DnsRecord>
TdecodeRecord
(ByteBuf in) Decodes a DNS record into its object representation.
-
Field Details
-
DEFAULT
-
-
Method Details
-
decodeQuestion
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
Decodes a DNS record into its object representation.- Parameters:
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
-