Class HexStringCodec


  • public class HexStringCodec
    extends java.lang.Object
    Converts bytes <--> String (hex)
    • Constructor Summary

      Constructors 
      Constructor Description
      HexStringCodec()  
    • Method Summary

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

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

      • HexStringCodec

        public HexStringCodec()
    • Method Detail

      • encode

        public static java.lang.String encode​(byte[] bytes)
        Convert bytes to string of hex.
      • decode

        public static byte[] decode​(java.lang.String hexString)
        Convert hex string to bytes