public final class ReverseMap extends Object
Modifier and Type | Method and Description |
---|---|
static Name |
fromAddress(byte[] addr)
Creates a reverse map name corresponding to an address contained in an array of 4 bytes (for an
IPv4 address) or 16 bytes (for an IPv6 address).
|
static Name |
fromAddress(InetAddress addr)
Creates a reverse map name corresponding to an address contained in an InetAddress.
|
static Name |
fromAddress(int[] addr)
Creates a reverse map name corresponding to an address contained in an array of 4 integers
between 0 and 255 (for an IPv4 address) or 16 integers between 0 and 255 (for an IPv6 address).
|
static Name |
fromAddress(String addr)
Creates a reverse map name corresponding to an address contained in a String.
|
static Name |
fromAddress(String addr,
int family)
Creates a reverse map name corresponding to an address contained in a String.
|
static InetAddress |
fromName(Name name)
Parses the address from a reverse map name.
|
static InetAddress |
fromName(String name)
Parses the address from a reverse map string.
|
public static Name fromAddress(byte[] addr)
addr
- The address from which to build a name.public static Name fromAddress(int[] addr)
addr
- The address from which to build a name.public static Name fromAddress(InetAddress addr)
addr
- The address from which to build a name.public static Name fromAddress(String addr, int family) throws UnknownHostException
addr
- The address from which to build a name.UnknownHostException
- The string does not contain a valid address.public static Name fromAddress(String addr) throws UnknownHostException
addr
- The address from which to build a name.UnknownHostException
- The string does not contain a valid address.public static InetAddress fromName(String name) throws UnknownHostException, TextParseException
name
- The string from which to build an address.UnknownHostException
- the passed name is not a valid reverse map.TextParseException
public static InetAddress fromName(Name name) throws UnknownHostException
name
- The name from which to build an address.UnknownHostException
- the passed name is not a valid reverse map.Copyright © 2022 dnsjava.org. All rights reserved.