Class Hex


  • public final class Hex
    extends java.lang.Object
    Helper methods for encode/decode hex strings.
    Since:
    1.0.0
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] decode​(java.lang.String hex)
      Decodes a hex string to a byte array.
      static java.lang.String encode​(byte[] bytes)
      Encodes a byte array to hex.
      • Methods inherited from class java.lang.Object

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

      • encode

        public static java.lang.String encode​(byte[] bytes)
        Encodes a byte array to hex.
      • decode

        public static byte[] decode​(java.lang.String hex)
        Decodes a hex string to a byte array.