Interface Data

  • All Known Implementing Classes:
    A, AAAA, CNAME, MX, NS, PTR, SRV, TXT

    public interface Data
    Generic payload class.
    • Method Detail

      • getType

        Record.TYPE getType()
        The payload type.
        Returns:
        The payload type.
      • toByteArray

        byte[] toByteArray()
        Binary representation of this payload.
        Returns:
        The binary representation of this payload.
      • parse

        void parse​(java.io.DataInputStream dis,
                   byte[] data,
                   int length)
            throws java.io.IOException
        Parse this payload.
        Parameters:
        dis - The input stream.
        data - The plain data (needed for name cross references).
        length - The payload length.
        Throws:
        java.io.IOException - on io error (read past paket boundary).