Class RRWithTarget

java.lang.Object
org.minidns.record.Data
org.minidns.record.RRWithTarget
Direct Known Subclasses:
CNAME, DNAME, NS, PTR

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

  • Constructor Details

    • RRWithTarget

      protected RRWithTarget(DnsName target)
  • Method Details

    • 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.
    • toString

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

      public final DnsName getTarget()