Class InternetAddressRR<IA extends InetAddress>

  • Direct Known Subclasses:
    A, AAAA

    public abstract class InternetAddressRR<IA extends InetAddress>
    extends Data
    A resource record representing a internet address. Provides getInetAddress().
    • Field Detail

      • ip

        protected final byte[] ip
        Target IP.
    • Constructor Detail

      • InternetAddressRR

        protected InternetAddressRR​(byte[] ip)
      • InternetAddressRR

        protected InternetAddressRR​(IA inetAddress)
    • Method Detail

      • serialize

        public final void serialize​(DataOutputStream dos)
                             throws IOException
        Description copied from class: Data
        The internal method used to serialize Data subclasses.
        Specified by:
        serialize in class Data
        Parameters:
        dos - the output stream to serialize to.
        Throws:
        IOException - if an I/O error occurs.
      • getIp

        public final byte[] getIp()
        Allocates a new byte buffer and fills the buffer with the bytes representing the IP address of this resource record.
        Returns:
        a new byte buffer containing the bytes of the IP.
      • getInetAddress

        public final IA getInetAddress()