|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbill.DNS.Address
Routines dealing with IP addresses. Includes functions similar to those in the java.net.InetAddress class.
| Method Summary | |
static InetAddress[] |
getAllByName(String name)
Determines all IP address of a host |
static InetAddress |
getByName(String name)
Determines the IP address of a host |
static String |
getHostName(InetAddress addr)
Determines the hostname for an address |
static boolean |
isDottedQuad(String s)
Determines if a string contains a valid IP address. |
static int[] |
toArray(String s)
Convert a string containing an IP address to an array of 4 integers. |
static String |
toDottedQuad(byte[] addr)
Converts a byte array containing an IPv4 address into a dotted quad string. |
static String |
toDottedQuad(int[] addr)
Converts an int array containing an IPv4 address into a dotted quad string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static int[] toArray(String s)
s - The string
public static boolean isDottedQuad(String s)
s - The string
public static String toDottedQuad(byte[] addr)
addr - The array
public static String toDottedQuad(int[] addr)
addr - The array
public static InetAddress getByName(String name)
throws UnknownHostException
name - The hostname to look up
UnknownHostException - The hostname does not have any addresses
public static InetAddress[] getAllByName(String name)
throws UnknownHostException
name - The hostname to look up
UnknownHostException - The hostname does not have any addresses
public static String getHostName(InetAddress addr)
throws UnknownHostException
addr - The address to look up
UnknownHostException - There is no hostname for the address
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||