Package org.xbill.DNS
Class TXTRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.TXTRecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
Text - stores text strings
- Author:
- Brian Wellington
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the text stringsList<byte[]> Returns the text stringsprotected voidrdataFromString(Tokenizer st, Name origin) Converts the text format of an RR to the internal format - must be overridenprotected voidrrFromWire(DNSInput in) Converts the type-specific RR to wire format - must be overriddenprotected Stringconverts to a Stringprotected voidrrToWire(DNSOutput out, Compression c, boolean canonical) Converts the type-specific RR to wire format - must be overridden.Methods inherited from class org.xbill.DNS.Record
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName
-
Field Details
-
strings
-
-
Constructor Details
-
TXTRecord
Creates a TXT Record from the given data- Parameters:
strings- The text strings- Throws:
IllegalArgumentException- One of the strings has invalid escapes
-
TXTRecord
Creates a TXT Record from the given data- Parameters:
string- One text string- Throws:
IllegalArgumentException- The string has invalid escapes
-
-
Method Details
-
rrFromWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWirein classRecord- Throws:
IOException
-
rdataFromString
Description copied from class:RecordConverts the text format of an RR to the internal format - must be overriden- Specified by:
rdataFromStringin classRecord- Throws:
IOException
-
rrToString
converts to a String- Specified by:
rrToStringin classRecord
-
getStrings
Returns the text strings- Returns:
- A list of Strings corresponding to the text strings.
-
getStringsAsByteArrays
Returns the text strings- Returns:
- A list of byte arrays corresponding to the text strings.
-
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden.
-