com.internationalnetwork.net.rr
Class ISDN

Object
  extended by com.internationalnetwork.net.RR
      extended by com.internationalnetwork.net.rr.ISDN

public class ISDN
extends RR

Resource Record type 20: ISDN address.


Field Summary
 
Fields inherited from class com.internationalnetwork.net.RR
A, A6, AAAA, AFSDB, ATMA, CERT, CLASS_CH, CLASS_CS, CLASS_HS, CLASS_IN, CNAME, DNAME, EID, GPOS, HINFO, ISDN, KEY, KX, LOC, MB, MD, MF, MG, MINFO, MR, MX, NAPTR, NIMLOC, NS, NSAP, NSAP_PTR, NULL, NXT, OPT, PTR, PX, RP, RR_TYPES, rrData, rrType, RT, SIG, SINK, SOA, SRV, TXT, VERSION, WKS, X25
 
Constructor Summary
ISDN(String isdn)
          Construct a new ISDN record with a String-representation of an ISDN Number and Sub Address pair.
ISDN(String isdnNumber, String subAddress)
          Construct a new ISDN record with a String-representation of an ISDN record.
 
Method Summary
 String getISDNNumber()
          Return the ISDN number for this ISDN record.
 String getSubAddress()
          Return the sub address for this ISDN record.
 String toString()
          Convert record to String.
 
Methods inherited from class com.internationalnetwork.net.RR
parseRR, parseRR, parseRR
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ISDN

public ISDN(String isdn)
Construct a new ISDN record with a String-representation of an ISDN Number and Sub Address pair.

Parameters:
isdn - String containing a space-delimited ISDN Number and Sub Address
Throws:
IllegalArgumentException - - you only need to catch this when the record text isn't hard-coded

ISDN

public ISDN(String isdnNumber,
            String subAddress)
Construct a new ISDN record with a String-representation of an ISDN record.

Parameters:
isdnNumber - String containing the ISDN number
subAddress - String containing the sub address
Throws:
IllegalArgumentException - - you only need to catch this when the record text isn't hard-coded
Method Detail

getISDNNumber

public String getISDNNumber()
Return the ISDN number for this ISDN record.

Returns:
the ISDN number

getSubAddress

public String getSubAddress()
Return the sub address for this ISDN record.

Returns:
the sub address

toString

public String toString()
Description copied from class: RR
Convert record to String.

Specified by:
toString in class RR
Returns:
This record, represented as a human-readable string (note that some record types include raw binary data and can't be converted to a string; in such cases, the class should provide a toBytes() convenience method)