Package org.xbill.DNS

Class U16NameBase

java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.U16NameBase
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Record>
Direct Known Subclasses:
AFSDBRecord, KXRecord, MXRecord, RTRecord

abstract class U16NameBase extends Record
Implements common functionality for the many record types whose format is an unsigned 16 bit integer followed by a name.
  • Field Details

    • u16Field

      protected int u16Field
    • nameField

      protected Name nameField
  • Constructor Details

    • U16NameBase

      protected U16NameBase()
    • U16NameBase

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

      protected U16NameBase(Name name, int type, int dclass, long ttl, int u16Field, String u16Description, Name nameField, String nameDescription)
  • 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
    • getU16Field

      protected int getU16Field()
    • getNameField

      protected Name getNameField()
    • 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