public class HexUtil extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
toHexArray(String src)
将字符串转换为16进制的数组
|
static String |
toHexString(byte[] src)
将字节数组转换为16进制字符串,并且默认按空格隔开
|
static String |
toHexString(byte[] src,
String splitStr)
将字节数组转换为16进制字符串,并且默认按指定字符串隔开
|
static String |
toHexString(byte[] src,
String splitStr,
boolean upperCase)
将字节数组转换为16进制字符串,并且默认按指定字符串隔开
|
public static byte[] toHexArray(String src)
src - 字符串public static String toHexString(byte[] src)
src - 字节数组public static String toHexString(byte[] src, String splitStr)
src - 字节数组splitStr - 分隔字符串Copyright © 2024. All rights reserved.