Package org.xbill.DNS
Class TXTBase
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.TXTBase
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
Implements common functionality for the many record types whose format is a list of strings.
-
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, checkByteArrayLength, checkName, checkU16, checkU32, checkU8, cloneRecord, compareTo, equals, fromString, fromString, fromWire, fromWire, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, setTTL, toString, toWire, toWire, toWireCanonical, unknownToString, withDClass, withName, writeReplace
-
Field Details
-
strings
-
-
Constructor Details
-
TXTBase
protected TXTBase() -
TXTBase
-
TXTBase
-
TXTBase
-
-
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.
-