Class Hex


  • public class Hex
    extends java.lang.Object
    Converters for going from hex to binary and back.

    Note: this class assumes ASCII processing.

    • Constructor Summary

      Constructors 
      Constructor Description
      Hex()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] decode​(byte[] array)  
      static byte[] decode​(java.lang.String string)  
      static byte[] encode​(byte[] array)  
      static byte[] encode​(byte[] array, int off, int length)  
      • Methods inherited from class java.lang.Object

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

      • hexTable

        private static final byte[] hexTable
    • Constructor Detail

      • Hex

        public Hex()
    • Method Detail

      • encode

        public static byte[] encode​(byte[] array)
      • encode

        public static byte[] encode​(byte[] array,
                                    int off,
                                    int length)
      • decode

        public static byte[] decode​(java.lang.String string)
      • decode

        public static byte[] decode​(byte[] array)