Package org.xbill.DNS

Class TXTRecord

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Record>

public class TXTRecord extends TXTBase
Text - stores text strings
See Also:
  • Constructor Details

    • TXTRecord

      TXTRecord()
    • TXTRecord

      public TXTRecord(Name name, int dclass, long ttl, List<String> strings)
      Creates a TXT Record from the given data
      Parameters:
      strings - The text strings
      Throws:
      IllegalArgumentException - One of the strings has invalid escapes
    • TXTRecord

      public TXTRecord(Name name, int dclass, long ttl, String string)
      Creates a TXT Record from the given data
      Parameters:
      string - One text string
      Throws:
      IllegalArgumentException - The string has invalid escapes