Interface DnsRecordDecoder

    • Method Detail

      • decodeQuestion

        DnsQuestion decodeQuestion​(ByteBuf in)
                            throws java.lang.Exception
        Decodes a DNS question into its object representation.
        Parameters:
        in - the input buffer which contains a DNS question at its reader index
        Throws:
        java.lang.Exception
      • decodeRecord

        <T extends DnsRecord> T decodeRecord​(ByteBuf in)
                                      throws java.lang.Exception
        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:
        java.lang.Exception