public final class Hex extends Object
| 构造器和说明 |
|---|
Hex() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
dump(byte[] array)
Returns a multi-line hexadecimal dump of the array that is easy to read by humans.
|
static String |
dump(byte[] bytes,
int offset,
int length)
Returns a multi-line hexadecimal dump of the specified sub-region of bytes that is easy to
read by humans.
|
static String |
str(byte[] bytes)
Converts an array of bytes into a string representing the hexadecimal values of each byte in
order.
|
static byte[] |
toBytes(String hexStr)
Converts a String representing hexadecimal values into an array of bytes of those same
values.
|
public static String dump(byte[] array)
array - An array of bytespublic static String dump(byte[] bytes, int offset, int length)
bytes - An array of bytesoffset - The offset of the sub-region start positionlength - The length of the sub-regionpublic static String str(byte[] bytes)
bytes - An array of bytespublic static byte[] toBytes(String hexStr)
hexStr - A String representing hexadecimal valuesCopyright © 2024. All rights reserved.