org.xbill.DNS
public class TXTRecord extends Record
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
strings |
Constructor and Description |
---|
TXTRecord(Name name,
int dclass,
long ttl,
java.util.List strings)
Creates a TXT Record from the given data
|
TXTRecord(Name name,
int dclass,
long ttl,
java.lang.String string)
Creates a TXT Record from the given data
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
getStrings()
Returns the text strings
|
java.util.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
public TXTRecord(Name name, int dclass, long ttl, java.util.List strings)
strings
- The text stringsjava.lang.IllegalArgumentException
- One of the strings has invalid escapespublic TXTRecord(Name name, int dclass, long ttl, java.lang.String string)
string
- One text stringjava.lang.IllegalArgumentException
- The string has invalid escapespublic java.util.List getStrings()
public java.util.List getStringsAsByteArrays()