Class HexUtils

java.lang.Object
dev.voidframework.core.utils.HexUtils

public final class HexUtils extends Object
Utility methods to handle hexadecimal values.
  • Method Details

    • toHex

      public static String toHex(String str)
      Convert each byte composing given string into hexadecimal representation.
      Parameters:
      str - String to convert
      Returns:
      Hexadecimal representation
    • toHex

      public static String toHex(byte[] byteArray)
      Convert each byte composing given array into hexadecimal representation.
      Parameters:
      byteArray - A byte array
      Returns:
      Hexadecimal representation