Class Utils


  • public class Utils
    extends Object
    • Field Detail

      • hexArray

        protected static final char[] hexArray
    • Constructor Detail

      • Utils

        public Utils()
    • Method Detail

      • bytesToHex

        public static String bytesToHex​(byte[] bytes)
      • unhex

        public static String unhex​(String hex)
                            throws org.apache.commons.codec.DecoderException
        Throws:
        org.apache.commons.codec.DecoderException
      • hexStringToByteArray

        public static byte[] hexStringToByteArray​(String hex)
                                           throws org.apache.commons.codec.DecoderException
        Convert Hexadecimal string to byte array
        Parameters:
        hex - String
        Returns:
        Bytes
        Throws:
        org.apache.commons.codec.DecoderException