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

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Address()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `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

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