Class BytesUtils


  • public class BytesUtils
    extends Object
    • Method Detail

      • toBytes

        public static byte[] toBytes​(String stringValue)
        Converts a Hex encoded string to a byte array.
        Parameters:
        stringValue - Hex encoded string
        Returns:
        Decoded byte array
      • toByteArray

        public static ByteArray toByteArray​(String stringValue)
        Converts a Hex encoded string to a ByteArray.
        Parameters:
        stringValue - Hex encoded string
        Returns:
        Decoded ByteArray
      • toHexString

        public static String toHexString​(byte[] bytes)
        Converts the byte array to a Hex encoded string.
        Parameters:
        bytes - byte array
        Returns:
        Hex encoded string