org.xbill.DNS
Class TXTRecord
java.lang.Object
|
+--org.xbill.DNS.Record
|
+--org.xbill.DNS.TXTRecord
- public class TXTRecord
- extends Record
Text - stores text strings
|
Constructor Summary |
TXTRecord(Name _name,
short _dclass,
int _ttl,
String _string)
Creates a TXT Record from the given data |
TXTRecord(Name _name,
short _dclass,
int _ttl,
Vector _strings)
Creates a TXT Record from the given data |
| Methods inherited from class org.xbill.DNS.Record |
equals,
fromString,
fromWire,
getDClass,
getName,
getRRsetType,
getTTL,
getType,
getWireLength,
hashCode,
newRecord,
newRecord,
newRecord,
toWire,
toWireCanonical,
withName |
TXTRecord
public TXTRecord(Name _name,
short _dclass,
int _ttl,
Vector _strings)
throws IOException
- Creates a TXT Record from the given data
- Parameters:
strings - The text strings
TXTRecord
public TXTRecord(Name _name,
short _dclass,
int _ttl,
String _string)
throws IOException
- Creates a TXT Record from the given data
- Parameters:
strings - One text string
toString
public String toString()
- converts to a String
- Overrides:
- toString in class Record
getStrings
public Vector getStrings()
- Returns the text strings