Package com.amazonaws.xray.utils
Class ByteUtils
java.lang.Object
com.amazonaws.xray.utils.ByteUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @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.static String
bytesToBase16String
(byte[] bytes) static String
intToBase16String
(long value) static String
numberToBase16String
(int hi, long lo)
-
Constructor Details
-
ByteUtils
public ByteUtils()
-
-
Method Details
-
byteArrayToHexString
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
-
numberToBase16String
-
intToBase16String
-