Package org.xbill.DNS

Class TXTBase

java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.TXTBase
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Record>
Direct Known Subclasses:
SPFRecord, TXTRecord

abstract class TXTBase extends Record
Implements common functionality for the many record types whose format is a list of strings.
  • Field Details

    • strings

      protected List<byte[]> strings
  • Constructor Details

    • TXTBase

      protected TXTBase()
    • TXTBase

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

      protected TXTBase(Name name, int type, int dclass, long ttl, List<String> strings)
    • TXTBase

      protected TXTBase(Name name, int type, int dclass, long ttl, String string)
  • 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()
      converts to a String
      Specified by:
      rrToString in class Record
    • getStrings

      public List<String> getStrings()
      Returns the text strings
      Returns:
      A list of Strings corresponding to the text strings.
    • getStringsAsByteArrays

      public List<byte[]> getStringsAsByteArrays()
      Returns the text strings
      Returns:
      A list of byte arrays corresponding to the text strings.
    • 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