Class Hex

java.lang.Object
dev.voidframework.core.helper.Hex

public final class Hex extends Object
String utility methods.
  • 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