|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.core.utils.InetAddressUtils
public abstract class InetAddressUtils
Abstract InetAddressUtils class.
| Constructor Summary | |
|---|---|
InetAddressUtils()
|
|
| Method Summary | |
|---|---|
static InetAddress |
convertBigIntegerIntoInetAddress(BigInteger i)
|
static InetAddress |
getInetAddress(byte[] ipAddrOctets)
getInetAddress |
static InetAddress |
getInetAddress(long ipAddrAs32bitNumber)
Deprecated. Dealing with IP addresses as 'long' type is not compatible with IPv6 |
static InetAddress |
getInetAddress(String dottedNotation)
getInetAddress |
static InetAddress |
getLowestInetAddress(List<InetAddress> addresses)
Given a list of IP addresses, return the lowest as determined by the numeric representation and not the alphanumeric string. |
static boolean |
isInetAddressInRange(byte[] addr,
byte[] begin,
byte[] end)
|
static boolean |
isInetAddressInRange(String addrString,
String beginString,
String endString)
|
static byte[] |
toIpAddrBytes(long address)
Deprecated. Dealing with IP addresses as 'long' type is not compatible with IPv6 |
static byte[] |
toIpAddrBytes(String dottedNotation)
toIpAddrBytes |
static long |
toIpAddrLong(byte[] address)
Deprecated. Dealing with IP addresses as 'long' type is not compatible with IPv6 |
static long |
toIpAddrLong(InetAddress addr)
Deprecated. Dealing with IP addresses as 'long' type is not compatible with IPv6 |
static long |
toIpAddrLong(String dottedNotation)
Deprecated. Dealing with IP addresses as 'long' type is not compatible with IPv6 |
static String |
toIpAddrString(byte[] addr)
toIpAddrString |
static String |
toIpAddrString(long ipAddr)
Deprecated. Dealing with IP addresses as 'long' type is not compatible with IPv6 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InetAddressUtils()
| Method Detail |
|---|
public static InetAddress getInetAddress(byte[] ipAddrOctets)
getInetAddress
ipAddrOctets - an array of byte.
InetAddress object.public static InetAddress getInetAddress(String dottedNotation)
getInetAddress
dottedNotation - a String object.
InetAddress object.public static InetAddress getInetAddress(long ipAddrAs32bitNumber)
getInetAddress
ipAddrAs32bitNumber - a long.
InetAddress object.public static byte[] toIpAddrBytes(long address)
toIpAddrBytes
address - a long.
public static byte[] toIpAddrBytes(String dottedNotation)
toIpAddrBytes
dottedNotation - a String object.
public static long toIpAddrLong(byte[] address)
toIpAddrLong
address - an array of byte.
public static long toIpAddrLong(String dottedNotation)
toIpAddrLong
dottedNotation - a String object.
public static long toIpAddrLong(InetAddress addr)
toIpAddrLong
addr - a InetAddress object.
public static String toIpAddrString(long ipAddr)
toIpAddrString
ipAddr - a long.
String object.public static String toIpAddrString(byte[] addr)
toIpAddrString
addr - an array of byte.
String object.public static InetAddress getLowestInetAddress(List<InetAddress> addresses)
addresses - a List object.
InetAddress object.
public static boolean isInetAddressInRange(String addrString,
String beginString,
String endString)
public static boolean isInetAddressInRange(byte[] addr,
byte[] begin,
byte[] end)
public static InetAddress convertBigIntegerIntoInetAddress(BigInteger i)
throws UnknownHostException
UnknownHostException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||