| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | IP6_EXACT
IPV6 match. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| public static InetAddress | |
| public static InetAddress | |
| public static byte[] | |
| private static String[] | |
| public static String |
| IP4_EXACT | back to summary |
|---|---|
| public static final String IP4_EXACT | |
| IP6_EXACT | back to summary |
|---|---|
| public static final String IP6_EXACT IPV6 match. ?: - unnamed groups are used for performance reasons. Requirements: - match full or partial IPV6 ( sliding '::') - match end to start - ^$ to ensure it does not match part of some random (\d:){n,m} - IPv4-Embedded IPv6 Address NO: - IPv4 mapped/translated into IPv6 ^(?:([0-9a-fA-F]{1,4}:){7,7}(?:[0-9a-fA-F]){1,4} - full address |(?:([0-9a-fA-F]{1,4}:)){1,7}(?:(:)) - last compressed |(?:([0-9a-fA-F]{1,4}:)){1,6}(?:(:[0-9a-fA-F]){1,4}) - second to last |(?:([0-9a-fA-F]{1,4}:)){1,5}(?:(:[0-9a-fA-F]{1,4})){1,2} - etc |(?:([0-9a-fA-F]{1,4}:)){1,4}(?:(:[0-9a-fA-F]{1,4})){1,3} |(?:([0-9a-fA-F]{1,4}:)){1,3}(?:(:[0-9a-fA-F]{1,4})){1,4} |(?:([0-9a-fA-F]{1,4}:)){1,2}(?:(:[0-9a-fA-F]{1,4})){1,5} |(?:([0-9a-fA-F]{1,4}:))(?:(:[0-9a-fA-F]{1,4})){1,6} |(?:(:))(?:((:[0-9a-fA-F]{1,4}){1,7}|(?:(:)))))$ - all the way compressed | |
| NetworkUtils | back to summary |
|---|---|
| private NetworkUtils() | |
| formatPossibleIpv6Address | back to summary |
|---|---|
| public static String formatPossibleIpv6Address(String address) | |
| parseIpv4Address | back to summary |
|---|---|
| public static InetAddress parseIpv4Address(String addressString) throws IOException | |
| parseIpv6Address | back to summary |
|---|---|
| public static InetAddress parseIpv6Address(final String addressString) throws IllegalArgumentException, UnknownHostException | |
| parseIpv6AddressToBytes | back to summary |
|---|---|
| public static byte[] parseIpv6AddressToBytes(final String addressString) throws IllegalArgumentException, UnknownHostException | |
| splitIPv6 | back to summary |
|---|---|
| private static String[] splitIPv6(final String src) | |
| toObfuscatedString | back to summary |
|---|---|
| public static String toObfuscatedString(InetAddress address) | |