public class InetAddressUtil extends Object
InetAddress utility methods.| Constructor and Description |
|---|
InetAddressUtil() |
| Modifier and Type | Method and Description |
|---|---|
static InetSocketAddress[] |
getSocketAddressList(String list,
int defaultPort)
Parse space delimited addresss[:port] string and return array of
InetSocketAddress. |
static InetSocketAddress[] |
getSocketAddressList(String list,
int defaultPort,
InetSocketAddress[] appendList)
Parse space delimited addresss[:port] string and return array of
InetSocketAddress. |
static InetAddress |
intToIPv4Address(int addr)
Convert an integer into an IPv4 INET address.
|
static int |
ipv4AddressToInt(InetAddress addr)
Convert an IPv4 INET address to an integer.
|
public static InetAddress intToIPv4Address(int addr)
addr - integer representation of a given address.public static int ipv4AddressToInt(InetAddress addr)
addr - IPv4 INET address.IllegalArgumentException - if the address is really an IPv6 addresspublic static InetSocketAddress[] getSocketAddressList(String list, int defaultPort)
InetSocketAddress.list - space delimited addresss[:port] string.defaultPort - port take if not specified.InetSocketAddress.public static InetSocketAddress[] getSocketAddressList(String list, int defaultPort, InetSocketAddress[] appendList)
InetSocketAddress.list - space delimited addresss[:port] string.defaultPort - port take if not specified.appendList - list to be appended.InetSocketAddress.Copyright © 2004-2020 EPICS. All Rights Reserved.