public class IPConverter extends Object
| Constructor and Description |
|---|
IPConverter() |
| Modifier and Type | Method and Description |
|---|---|
static InetAddress |
InetAddressByIPv4(String address)
Convert defined string to IPv4 object instance
|
static InetAddress |
InetAddressByIPv6(String address)
Convert defined string to IPv6 object instance
|
public static InetAddress InetAddressByIPv4(String address)
address - string representation of ip addresspublic static InetAddress InetAddressByIPv6(String address)
address - string representation of ip addressCopyright © 2016. All Rights Reserved.