Class HexUtils


  • public class HexUtils
    extends java.lang.Object
    Utilities for working with hex numbers.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int[] HEX_MAP  
    • Constructor Summary

      Constructors 
      Constructor Description
      HexUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int parseHexDigit​(int ch)
      Parse a hex digit.
      static byte[] parseHexString​(java.lang.String hex)
      Convert a string of hex digits into an array of bytes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • HEX_MAP

        private static final int[] HEX_MAP
    • Constructor Detail

      • HexUtils

        public HexUtils()
    • Method Detail

      • parseHexDigit

        public static int parseHexDigit​(int ch)
        Parse a hex digit.
      • parseHexString

        public static final byte[] parseHexString​(java.lang.String hex)
        Convert a string of hex digits into an array of bytes.