public class ByteUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CHARSET_NAME |
| 构造器和说明 |
|---|
ByteUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
bytesToHex(byte[] bytes)
字节码转为大写16进制串
|
static String |
bytesToString(byte[] bytes)
字节码转为字符串
|
static byte[] |
hexToBytes(String hexString)
16进制串转为字节码
|
static String |
hexToString(String hexString)
16进制串转为字符串
|
static byte[] |
stringToBytes(String str)
字符串转为字节码转
|
static String |
stringToHex(String str)
字符串转为16进制串
|
public static String bytesToHex(byte[] bytes)
bytes - public static byte[] hexToBytes(String hexString)
hexString - public static String bytesToString(byte[] bytes)
bytes - public static byte[] stringToBytes(String str)
str - Copyright © 2023. All rights reserved.