| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| private static boolean | |
| private static boolean | |
| public static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static void | |
| public static String | |
| public static String | formatAddress(InetSocketAddress inet)
Converts socket address into string literal, which has form: 'address:port'. |
| private static String | formatAddress6(int[] hexRepresentation)
Converts IPV6 int[] representation into valid IPV6 string literal. |
| public static String | |
| public static boolean | |
| private static boolean | Returns: true, if input string is an IPv4 address in IPv6 format.the address ipv6Address)Check if it is an IPv4 in IPv6 format. |
| private static boolean | Returns: true, if input string contains only hex digits and at least two colons, before '.' or '%' character.Any string or null input)Heuristic check if string might be an IPv6 address. |
| can_bind_to_mcast_addr | back to summary |
|---|---|
| private static final boolean can_bind_to_mcast_addr | |
| IPV6_LEN | back to summary |
|---|---|
| private static final int IPV6_LEN | |
| MAX_GROUP_LENGTH | back to summary |
|---|---|
| private static final int MAX_GROUP_LENGTH | |
| NetworkUtils | back to summary |
|---|---|
| private NetworkUtils() | |
| canonize | back to summary |
|---|---|
| public static String canonize(String ipv6Address) throws IllegalArgumentException Convert IPv6 adress into RFC 5952 form. E.g. 2001:db8:0:1:0:0:0:1 -> 2001:db8:0:1::1 Method is null safe, and if IPv4 address or host name is passed to the method it is returned wihout any processing. Method also supports IPv4 in IPv6 (e.g. 0:0:0:0:0:ffff:192.0.2.1 -> ::ffff:192.0.2.1), and zone ID (e.g. fe80:0:0:0:f0f0:c0c0:1919:1234%4 -> fe80::f0f0:c0c0:1919:1234%4).
| |
| checkForHp | back to summary |
|---|---|
| private static boolean checkForHp() | |
| checkForLinux | back to summary |
|---|---|
| private static boolean checkForLinux() | |
| checkForMac | back to summary |
|---|---|
| public static boolean checkForMac() | |
| checkForPresence | back to summary |
|---|---|
| private static boolean checkForPresence(final String key, final String value) | |
| checkForSolaris | back to summary |
|---|---|
| private static boolean checkForSolaris() | |
| checkForWindows | back to summary |
|---|---|
| private static boolean checkForWindows() | |
| compactLongestZeroSequence | back to summary |
|---|---|
| private static void compactLongestZeroSequence(int[] hexRepresentatoin) | |
| formatAddress | back to summary |
|---|---|
| public static String formatAddress(InetAddress inet) Formats input address. For IPV4 returns simply host address, for IPV6 formats address according to RFC5952 rules. It does not embed IPV6 address in '[', ']', since those are part of IPV6 URI literal. | |
| formatAddress | back to summary |
|---|---|
| public static String formatAddress(InetSocketAddress inet) Converts socket address into string literal, which has form: 'address:port'. Example:
| |
| formatAddress6 | back to summary |
|---|---|
| private static String formatAddress6(int[] hexRepresentation) Converts IPV6 int[] representation into valid IPV6 string literal. Sequence of '-1' values are converted into '::'. | |
| formatPossibleIpv6Address | back to summary |
|---|---|
| public static String formatPossibleIpv6Address(String address) | |
| isBindingToMulticastDressSupported | back to summary |
|---|---|
| public static boolean isBindingToMulticastDressSupported() | |
| isIPv4AddressInIPv6 | back to summary |
|---|---|
| private static boolean isIPv4AddressInIPv6(String ipv6Address) Check if it is an IPv4 in IPv6 format. e.g. 0:0:0:0:0:FFFF:127.0.0.1
| |
| mayBeIPv6Address | back to summary |
|---|---|
| private static boolean mayBeIPv6Address(String input) Heuristic check if string might be an IPv6 address.
| |