public final class Hex
extends Object
Converts bytes to Hexadecimal and back.
-
Method Summary
static byte[]
Converts hex string back into bytes.
Converts bytes to hex string.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
toString
public static String toString(byte[] bytes)
Converts bytes to hex string.
-
toByteArray
public static byte[] toByteArray(String s)
Converts hex string back into bytes.