com.jscape.inet.dns.record
Class Address
java.lang.Object
com.jscape.inet.dns.record.DnsRecord
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
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Address
public Address()
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
Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved