org.opennms.core.utils
Class InetAddressUtils

java.lang.Object
  extended by org.opennms.core.utils.InetAddressUtils

public abstract class InetAddressUtils
extends Object

Author:
Mathew Brozowski

Constructor Summary
InetAddressUtils()
           
 
Method Summary
static InetAddress getInetAddress(byte[] ipAddrOctets)
           
static InetAddress getInetAddress(long ipAddrAs32bitNumber)
           
static InetAddress getInetAddress(String dottedNotation)
           
static byte[] toIpAddrBytes(InetAddress addr)
           
static byte[] toIpAddrBytes(long address)
           
static byte[] toIpAddrBytes(String dottedNotation)
           
static long toIpAddrLong(byte[] address)
           
static long toIpAddrLong(InetAddress addr)
           
static long toIpAddrLong(String dottedNotation)
           
static String toIpAddrString(byte[] addr)
           
static String toIpAddrString(long ipAddr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InetAddressUtils

public InetAddressUtils()
Method Detail

getInetAddress

public static InetAddress getInetAddress(byte[] ipAddrOctets)

getInetAddress

public static InetAddress getInetAddress(String dottedNotation)

getInetAddress

public static InetAddress getInetAddress(long ipAddrAs32bitNumber)

toIpAddrBytes

public static byte[] toIpAddrBytes(long address)

toIpAddrBytes

public static byte[] toIpAddrBytes(String dottedNotation)

toIpAddrBytes

public static byte[] toIpAddrBytes(InetAddress addr)

toIpAddrLong

public static long toIpAddrLong(byte[] address)

toIpAddrLong

public static long toIpAddrLong(String dottedNotation)

toIpAddrLong

public static long toIpAddrLong(InetAddress addr)

toIpAddrString

public static String toIpAddrString(long ipAddr)

toIpAddrString

public static String toIpAddrString(byte[] addr)


Copyright © 2009. All Rights Reserved.