Class DHCPUtils


  • public abstract class DHCPUtils
    extends java.lang.Object
    • Constructor Detail

      • DHCPUtils

        public DHCPUtils()
    • 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)