Class HexUtils


  • public class HexUtils
    extends Object
    • Constructor Detail

      • HexUtils

        public HexUtils()
    • Method Detail

      • hex

        public static String hex​(byte[] b)
      • unhex

        public static byte[] unhex​(String s)
        Convert a hex string into a byte array. If the string has an odd number of hex digits, it is padded with 0 at the beginning.
        Parameters:
        s - - string to be converted
        Returns:
        binary array representation of the hex string