T
- the type of data to return after decoding a resource record (for
example, an AddressDecoder
will return a ByteBuf
)public interface RecordDecoder<T>
Modifier and Type | Method and Description |
---|---|
T |
decode(DnsResponse response,
DnsResource resource)
Returns a generic type
T defined in a class implementing
RecordDecoder after decoding a resource record when given a DNS
response packet. |
T decode(DnsResponse response, DnsResource resource) throws io.netty.handler.codec.DecoderException
T
defined in a class implementing
RecordDecoder
after decoding a resource record when given a DNS
response packet.response
- the DNS response that contains the resource record being
decodedresource
- the resource record being decodedio.netty.handler.codec.DecoderException
Copyright © 2015. All Rights Reserved.