Class ByteUtils

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

public class ByteUtils
extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor Description
    ByteUtils()  
  • Method Summary

    Modifier and Type Method Description
    static @Nullable java.lang.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.
    static java.lang.String bytesToBase16String​(byte[] bytes)  
    static java.lang.String intToBase16String​(long value)  
    static java.lang.String numberToBase16String​(int hi, long lo)  

    Methods inherited from class java.lang.Object

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

    • ByteUtils

      public ByteUtils()
  • Method Details

    • byteArrayToHexString

      public static @Nullable java.lang.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 java.lang.String bytesToBase16String​(byte[] bytes)
    • numberToBase16String

      public static java.lang.String numberToBase16String​(int hi, long lo)
    • intToBase16String

      public static java.lang.String intToBase16String​(long value)