com.sagestudio.jh2n
Class RRecord

java.lang.Object
  |
  +--com.sagestudio.jh2n.RRecord

public class RRecord
extends java.lang.Object


Method Summary
static void addtoHash(RRecord addit)
           
static java.lang.String formatRR(java.lang.String key, java.lang.String type, java.lang.String value)
          formatRR method formats and returns a passed record pass it the key, record type, and value and it formats it real nice!
 java.lang.String FQDN()
          returns the fully qualified key name of the record
 java.lang.String getIPAddress()
          returns the IP address of a given RRecord looks it up if it has to!
static java.lang.String printDomain(java.lang.String domain)
          this String method returns all the for the domain matching the passed string
static void printDomain(java.lang.String domain, java.io.PrintWriter printout)
          this method prints all the records for the domain matching the passed string outputs the records to the passed printwriter object better than toString because PrintWriter understands local system EOL conventions
static java.lang.String printDomains()
          prints all the entries in the rDomainHash
static java.util.Enumeration rDomainKeys()
           
static java.util.Enumeration rListRecordsWithPrefix(java.lang.String prefix)
          return an Enumeration containing all the RRecords whos FQDN match the given prefix
 java.lang.String toString()
          this toString method formats and returns a given record
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public java.lang.String toString()
this toString method formats and returns a given record
Overrides:
toString in class java.lang.Object

formatRR

public static java.lang.String formatRR(java.lang.String key,
                                        java.lang.String type,
                                        java.lang.String value)
formatRR method formats and returns a passed record pass it the key, record type, and value and it formats it real nice!

FQDN

public java.lang.String FQDN()
returns the fully qualified key name of the record

getIPAddress

public java.lang.String getIPAddress()
returns the IP address of a given RRecord looks it up if it has to!

addtoHash

public static void addtoHash(RRecord addit)

printDomain

public static void printDomain(java.lang.String domain,
                               java.io.PrintWriter printout)
this method prints all the records for the domain matching the passed string outputs the records to the passed printwriter object better than toString because PrintWriter understands local system EOL conventions

printDomain

public static java.lang.String printDomain(java.lang.String domain)
this String method returns all the for the domain matching the passed string

printDomains

public static java.lang.String printDomains()
prints all the entries in the rDomainHash

rDomainKeys

public static java.util.Enumeration rDomainKeys()

rListRecordsWithPrefix

public static java.util.Enumeration rListRecordsWithPrefix(java.lang.String prefix)
return an Enumeration containing all the RRecords whos FQDN match the given prefix