Secure iNet Factory

com.jscape.inet.dns.record
Class Address

java.lang.Object
  extended by com.jscape.inet.dns.record.DnsRecord
      extended by com.jscape.inet.dns.record.Address
All Implemented Interfaces:
java.io.Serializable

public class Address
extends DnsRecord

Address record represents a host address.

See Also:
Serialized Form

Constructor Summary
Address()
           
 
Method Summary
 byte[] getAddress()
          Gets byte[] representing 32 bit ip address.
 java.net.InetAddress getInetAddress()
          Gets InetAddress for this Address.
 java.lang.String toString()
          Gets String representation of this record.
 
Methods inherited from class com.jscape.inet.dns.record.DnsRecord
getRecordClass, getRecordName, getRecordTTL, getRecordType, init, isValid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Address

public Address()
Method Detail

getAddress

public byte[] getAddress()
Gets byte[] representing 32 bit ip address.

Returns:
byte[]

getInetAddress

public java.net.InetAddress getInetAddress()
                                    throws java.net.UnknownHostException
Gets InetAddress for this Address.

Returns:
an InetAddress
Throws:
java.net.UnknownHostException - the IP address of a host could not be determined

toString

public java.lang.String toString()
Gets String representation of this record.

Overrides:
toString in class java.lang.Object
Returns:
String

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved