public final class IPAddressHelper extends Object
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static String |
addressToString(byte[] address)
Convert the byte array representation of an IP address into a string.
|
static boolean |
hasMask(byte[] address)
Check whether IP address array has a subnet mask or not.
|
static boolean |
isIPv4(byte[] address)
Check whether IP address array is IPv4.
|
static boolean |
isIPv6(byte[] address)
Check whether IP address array is IPv6.
|
public static String addressToString(byte[] address)
address - IP address in byte array form (in network byte order)public static boolean isIPv4(byte[] address)
address - IP address byte arraypublic static boolean isIPv6(byte[] address)
address - IP address byte arraypublic static boolean hasMask(byte[] address)
address - IP address byte arrayCopyright © 2012. All Rights Reserved.