Class RRWithTarget

  • Direct Known Subclasses:
    CNAME, DNAME, NS, PTR

    public abstract class RRWithTarget
    extends Data
    A resource record pointing to a target.
    • Field Detail

      • target

        public final DnsName target
      • name

        @Deprecated
        public final DnsName name
        Deprecated.
        target instead.
        The target of this resource record.
    • Constructor Detail

      • RRWithTarget

        protected RRWithTarget​(DnsName target)
    • Method Detail

      • serialize

        public void serialize​(java.io.DataOutputStream dos)
                       throws java.io.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:
        java.io.IOException - if an I/O error occurs.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getTarget

        public final DnsName getTarget()