![]() |
|
Contents |
Static Public Member Functions | |
| static byte[] | createByteArrayFromIPAddressString (String ipAddressString) |
| Creates an byte[] based on an ipAddressString. | |
| static String | createIPAddrStringFromByteArray (byte ipByteArray[]) |
| static void | convertToBytes (String hexWord, byte ipByteArray[], int byteIndex) |
| Converts a 4 character hex word into a 2 byte word equivalent. | |
| static int | bytesToInt (byte bytes[], int start) |
| Takes the byte array and creates an integer out of four bytes starting at start as the high-order byte. | |
| static String | addressToString (int value) |
| static boolean | isValidIP6Address (String ipAddress) |
| static boolean | isValidIP4Word (String word) |
| static boolean | isValidIPV4Address (String value) |
| Takes a string and parses it to see if it is a valid IPV4 address. | |
Static Package Functions | |
| static int | getIntValue (char c) |
| static boolean | isValidHexChar (char c) |
Static Package Attributes | |
| static String | hexCharacters = "0123456789ABCDEF" |
Static Private Member Functions | |
| static boolean | isIPv4MappedAddress (byte ipAddress[]) |
| static byte [] createByteArrayFromIPAddressString | ( | String | ipAddressString | ) | [static] |
Creates an byte[] based on an ipAddressString.
No error handling is performed here.
| static String createIPAddrStringFromByteArray | ( | byte | ipByteArray[] | ) | [static] |
| static void convertToBytes | ( | String | hexWord, | |
| byte | ipByteArray[], | |||
| int | byteIndex | |||
| ) | [static] |
Converts a 4 character hex word into a 2 byte word equivalent.
| static int getIntValue | ( | char | c | ) | [static, package] |
| static boolean isIPv4MappedAddress | ( | byte | ipAddress[] | ) | [static, private] |
| static int bytesToInt | ( | byte | bytes[], | |
| int | start | |||
| ) | [static] |
Takes the byte array and creates an integer out of four bytes starting at start as the high-order byte.
This method makes no checks on the validity of the parameters.
| static String addressToString | ( | int | value | ) | [static] |
| static boolean isValidIP6Address | ( | String | ipAddress | ) | [static] |
| static boolean isValidIP4Word | ( | String | word | ) | [static] |
| static boolean isValidHexChar | ( | char | c | ) | [static, package] |
| static boolean isValidIPV4Address | ( | String | value | ) | [static] |
Takes a string and parses it to see if it is a valid IPV4 address.
String hexCharacters = "0123456789ABCDEF" [static, package] |