public class ByteTools extends Object
| 构造器和说明 |
|---|
ByteTools() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
base642byte(String base64)
base64 字符转字节
|
static String |
byte2base64(byte[] bytes)
base64 字节转字符
|
static String |
bytes2hex(byte[] bs)
已过时。
|
static byte[] |
getStartByte(byte[] bs,
int digit)
获取数组前几位
|
static byte[] |
hex2bytes(String hex)
字符串转成字节
|
static String |
standardBytes2HexString(byte[] b) |
public static byte[] getStartByte(byte[] bs,
int digit)
bs - 原始数组digit - 位数@Deprecated public static String bytes2hex(byte[] bs)
bs - public static byte[] hex2bytes(String hex)
hex - 字符串public static String byte2base64(byte[] bytes)
bytes - public static byte[] base642byte(String base64) throws IOException
base64 - IOExceptionpublic static String standardBytes2HexString(byte[] b)
Copyright © 2022. All rights reserved.