Package ch.hevs.kart.utils
Class HexTools
java.lang.Object
ch.hevs.kart.utils.HexTools
Allows to convert a byte buffer or byte array into a Hex string.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
hexString
(byte[] array) Converts the data in the byte array to a hex string.static String
hexString
(ByteBuffer byteBuffer) Converts the data in the byte buffer to a hex string.
-
Constructor Details
-
HexTools
public HexTools()
-
-
Method Details
-
hexString
Converts the data in the byte buffer to a hex string.- Parameters:
byteBuffer
- Byte buffer to read from.- Returns:
- Hex string of the bytebuffer's content.
-
hexString
Converts the data in the byte array to a hex string.- Parameters:
array
- Byte array to convert.- Returns:
- Hex string of the byte array.
-