DnsRecordDecoder implementation.
DefaultDnsRecordEncoder
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: the domain name for an entrythe byte buffer containing the DNS packet in)Retrieves a domain name given a buffer containing a DNS packet. |
| protected String | Returns: the domain name for an entrythe byte buffer containing the DNS packet in)Retrieves a domain name given a buffer containing a DNS packet. |
| public final DnsQuestion | decodeQuestion(Buffer
the input buffer which contains a DNS question at its reader index in)Implements io. |
| public final <T extends DnsRecord> T | decodeRecord(BufferAllocator allocator, Buffer
the input buffer which contains a DNS record at its reader index in)Implements io. |
| protected DnsRecord | Returns: aDnsRawRecord. Override this method to decode RDATA and return other record implementation.the domain name of the record name, DnsRecordType the type of the record type, int the class of the record dnsClass, long the TTL of the record timeToLive, BufferAllocator allocator, Buffer the in, int Buffer that contains the RDATAthe start offset of the RDATA in offset, int inthe length of the RDATA length)Decodes a record from the information decoded so far by
|
| ROOT | back to summary |
|---|---|
| pack-priv static final String ROOT | |
| DefaultDnsRecordDecoder | back to summary |
|---|---|
| protected DefaultDnsRecordDecoder() Creates a new instance. | |
| decodeName | back to summary |
|---|---|
| public static String decodeName(Buffer in) Retrieves a domain name given a buffer containing a DNS packet. If the name contains a pointer, the position of the buffer will be set to directly after the pointer's index after the name has been read. | |
| decodeName0 | back to summary |
|---|---|
| protected String decodeName0(Buffer in) Retrieves a domain name given a buffer containing a DNS packet. If the name contains a pointer, the position of the buffer will be set to directly after the pointer's index after the name has been read. | |
| decodeQuestion | back to summary |
|---|---|
| public final DnsQuestion decodeQuestion(Buffer in) throws Exception Implements io. Doc from io. Decodes a DNS question into its object representation. | |
| decodeRecord | back to summary |
|---|---|
| public final <T extends DnsRecord> T decodeRecord(BufferAllocator allocator, Buffer in) throws Exception Implements io. Doc from io. Decodes a DNS record into its object representation. | |
| decodeRecord | back to summary |
|---|---|
| protected DnsRecord decodeRecord(String name, DnsRecordType type, int dnsClass, long timeToLive, BufferAllocator allocator, Buffer in, int offset, int length) throws Exception Decodes a record from the information decoded so far by
| |