Class HexTools

java.lang.Object
ch.hevs.kart.utils.HexTools

public class HexTools extends Object
Allows to convert a byte buffer or byte array into a Hex string.
  • Constructor Details

    • HexTools

      public HexTools()
  • Method Details

    • hexString

      public static String hexString(ByteBuffer byteBuffer)
      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

      public static String hexString(byte[] array)
      Converts the data in the byte array to a hex string.
      Parameters:
      array - Byte array to convert.
      Returns:
      Hex string of the byte array.