|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cosylab.epics.caj.util.InetAddressUtil
public class InetAddressUtil
InetAddress utility methods.
| Constructor Summary | |
|---|---|
InetAddressUtil()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InetAddressUtil()
| Method Detail |
|---|
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 address
public 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||