public class HexUtil extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
bytesToHex(byte[] bytes)
translate a byte array of raw data into a String with a hex representation of that data
|
static java.lang.String |
bytesToHex(byte[] bytes,
java.lang.String separator)
translate a byte array of raw data into a String with a hex representation of that data.
|
static byte[] |
hexToBytes(java.lang.String str)
Converts a Hex encoded String into a byte vector.
|
public static java.lang.String bytesToHex(byte[] bytes)
bytes - raw binary datapublic static java.lang.String bytesToHex(byte[] bytes, java.lang.String separator)
bytes - raw binary dataseparator - This string will be injected into the output in between each octet in the streampublic static byte[] hexToBytes(java.lang.String str)
str - The String to be encoded.