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


Fields inherited from class org.xbill.DNS.Record
dclass, name, ttl, type, wireLength
 
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
 
Method Summary
 Vector getStrings()
          Returns the text strings
 String toString()
          converts to a String
 
Methods inherited from class org.xbill.DNS.Record
equals, fromString, fromWire, getDClass, getName, getRRsetType, getTTL, getType, getWireLength, hashCode, newRecord, newRecord, newRecord, toWire, toWireCanonical, withName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

toString

public String toString()
converts to a String
Overrides:
toString in class Record

getStrings

public Vector getStrings()
Returns the text strings