Class DHCPUtils
- java.lang.Object
-
- org.opendaylight.netvirt.dhcpservice.api.DHCPUtils
-
public abstract class DHCPUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DHCPUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable java.net.InetAddress
byteArrayToInetAddr(byte[] ba)
static short
byteArrayToShort(@org.eclipse.jdt.annotation.Nullable byte[] ba)
static java.lang.String
byteArrayToString(byte[] bytes)
static byte[]
byteToByteArray(byte value)
static byte[]
inetAddrToByteArray(java.net.InetAddress address)
static byte[]
intToByteArray(int value)
static byte[]
shortToByteArray(short value)
static byte[]
strAddrToByteArray(java.lang.String addr)
static byte[]
strListAddrsToByteArray(java.util.List<java.lang.String> strList)
static @org.eclipse.jdt.annotation.Nullable byte[]
strMacAddrtoByteArray(java.lang.String macAddress)
-
-
-
Method Detail
-
byteToByteArray
public static byte[] byteToByteArray(byte value)
-
shortToByteArray
public static byte[] shortToByteArray(short value)
-
intToByteArray
public static byte[] intToByteArray(int value)
-
inetAddrToByteArray
public static byte[] inetAddrToByteArray(java.net.InetAddress address)
-
strAddrToByteArray
public static byte[] strAddrToByteArray(java.lang.String addr) throws java.net.UnknownHostException
- Throws:
java.net.UnknownHostException
-
strListAddrsToByteArray
public static byte[] strListAddrsToByteArray(java.util.List<java.lang.String> strList) throws java.net.UnknownHostException
- Throws:
java.net.UnknownHostException
-
byteArrayToShort
public static short byteArrayToShort(@org.eclipse.jdt.annotation.Nullable byte[] ba)
-
byteArrayToInetAddr
public static @Nullable java.net.InetAddress byteArrayToInetAddr(byte[] ba)
-
strMacAddrtoByteArray
public static @org.eclipse.jdt.annotation.Nullable byte[] strMacAddrtoByteArray(java.lang.String macAddress)
-
byteArrayToString
public static java.lang.String byteArrayToString(byte[] bytes)
-
-