com.lavantech.net.dns
Class TXTRecord

java.lang.Object
  extended bycom.lavantech.net.dns.ResourceRecord
      extended bycom.lavantech.net.dns.TXTRecord

public class TXTRecord
extends ResourceRecord

TXTRecord represents text information in a DNS TXT Record.


Constructor Summary
TXTRecord(java.lang.String rname, int rtype, int rclass, long ttl, char[] txt)
          Creates a TXTRecord with all the required information.
 
Method Summary
 char[] getTextInfo()
          Returns the text information
 java.lang.String toString()
          Returns a string representation of the record.
 
Methods inherited from class com.lavantech.net.dns.ResourceRecord
getResourceClass, getResourceName, getResourceType, getTTL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TXTRecord

public TXTRecord(java.lang.String rname,
                 int rtype,
                 int rclass,
                 long ttl,
                 char[] txt)
Creates a TXTRecord with all the required information.

Parameters:
rname - Record Name (domain name)
rtype - Record Type
rclass - Record Class
ttl - Time to Live, time in seconds after which the record will expire.
txt - Text information
Method Detail

getTextInfo

public char[] getTextInfo()
Returns the text information


toString

public java.lang.String toString()
Returns a string representation of the record.

Overrides:
toString in class ResourceRecord