public final class HexUtils
extends java.lang.Object
| Constructor and Description |
|---|
HexUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
hexMD5(byte[] data)
Produce hex representation of the MD5 digest of a byte array.
|
static java.lang.String |
hexMD5(java.nio.ByteBuffer buf,
int offset,
int len)
Produce hex representation of the MD5 digest of a byte array.
|
static java.lang.String |
toHex(byte[] bytes)
Converts the given byte buffer to a hexadecimal string using
Integer.toHexString(int). |
public static java.lang.String toHex(byte[] bytes)
Integer.toHexString(int).bytes - the bytes to convert to hexpublic static java.lang.String hexMD5(byte[] data)
data - bytes to digestpublic static java.lang.String hexMD5(java.nio.ByteBuffer buf,
int offset,
int len)
buf - byte buffer containing the bytes to digestoffset - the position to start reading bytes fromlen - the number of bytes to read from the bufferCopyright © 2010 - 2023 Adobe. All Rights Reserved