Class RRWithTarget

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

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

      • RRWithTarget

        protected RRWithTarget​(DnsName target)
    • Method Detail

      • serialize

        public 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.
      • getTarget

        public final DnsName getTarget()