|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.buzzsurf.dns.Util
Static utilities used to convert IP Addresses between the various formats used internally by the java.net.InetAddress class and associated classes.
| Field Summary | |
static int |
INADDRSZ
|
| Method Summary | |
static byte[] |
intToNumericFormat(int src)
Converts the internal integer representation of an IPv4 into a binary address |
static int |
numericToIntFormat(byte[] addr)
Converts IPv4 binary address a single integer representation as used internally by Inet4Address |
static java.lang.String |
numericToTextFormat(byte[] src)
Converts IPv4 binary address into a string suitable for presentation. |
static byte[] |
textToNumericFormat(java.lang.String src)
Converts IPv4 address in its textual presentation form into its numeric binary form. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int INADDRSZ
| Method Detail |
public static byte[] intToNumericFormat(int src)
public static int numericToIntFormat(byte[] addr)
public static java.lang.String numericToTextFormat(byte[] src)
src - a byte array representing an IPv4 numeric address
public static byte[] textToNumericFormat(java.lang.String src)
src - a String representing an IPv4 address in standard format
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||