org.xbill.DNS
public class TXTRecord extends Record
Constructor and Description |
---|
TXTRecord(Name name,
int dclass,
long ttl,
List strings)
Creates a TXT Record from the given data
|
TXTRecord(Name name,
int dclass,
long ttl,
String string)
Creates a TXT Record from the given data
|
Modifier and Type | Method and Description |
---|---|
List |
getStrings()
Returns the text strings
|
List |
getStringsAsByteArrays()
Returns the text strings
|
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName
protected List strings
public TXTRecord(Name name, int dclass, long ttl, List strings)
strings
- The text stringsIllegalArgumentException
- One of the strings has invalid escapespublic TXTRecord(Name name, int dclass, long ttl, String string)
string
- One text stringIllegalArgumentException
- The string has invalid escapes