Class ByteUtils

java.lang.Object
com.amazonaws.xray.utils.ByteUtils

public class ByteUtils extends Object
  • Constructor Details

    • ByteUtils

      public ByteUtils()
  • Method Details

    • byteArrayToHexString

      public static @Nullable String byteArrayToHexString(byte[] raw)
      ref: https://stackoverflow.com/questions/9655181/how-to-convert-a-byte-array-to-a-hex-string-in-java Converts the input byte array into a hexadecimal string.
      Parameters:
      raw - - Byte array
      Returns:
      String - Hexadecimal representation of the byte array.
    • bytesToBase16String

      public static String bytesToBase16String(byte[] bytes)
    • numberToBase16String

      public static String numberToBase16String(int hi, long lo)
    • intToBase16String

      public static String intToBase16String(long value)