Package org.xbill.DNS

Class SingleNameBase

java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.SingleNameBase
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Record>
Direct Known Subclasses:
DNAMERecord, MBRecord, MDRecord, MFRecord, MGRecord, MRRecord, NSAP_PTRRecord, SingleCompressedNameBase

abstract class SingleNameBase extends Record
Implements common functionality for the many record types whose format is a single name.
  • Field Details

    • singleName

      protected Name singleName
  • Constructor Details

    • SingleNameBase

      protected SingleNameBase()
    • SingleNameBase

      protected SingleNameBase(Name name, int type, int dclass, long ttl)
    • SingleNameBase

      protected SingleNameBase(Name name, int type, int dclass, long ttl, Name singleName, String description)
  • Method Details

    • rrFromWire

      protected void rrFromWire(DNSInput in) throws IOException
      Description copied from class: Record
      Converts the type-specific RR to wire format - must be overridden
      Specified by:
      rrFromWire in class Record
      Throws:
      IOException
    • rdataFromString

      protected void rdataFromString(Tokenizer st, Name origin) throws IOException
      Description copied from class: Record
      Converts the text format of an RR to the internal format - must be overriden
      Specified by:
      rdataFromString in class Record
      Throws:
      IOException
    • rrToString

      protected String rrToString()
      Description copied from class: Record
      Converts the type-specific RR to text format - must be overridden.
      Specified by:
      rrToString in class Record
    • getSingleName

      protected Name getSingleName()
    • rrToWire

      protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
      Description copied from class: Record
      Converts the type-specific RR to wire format - must be overridden.
      Specified by:
      rrToWire in class Record