public class Hex extends Object
Modifier and Type | Method and Description |
---|---|
static String |
bytesToHex(byte[] bs)
byte[]转十六进制
|
static String |
byteToHex(byte b)
byte转十六进制
|
static String |
decode(String s) |
static String |
encode(String s) |
static byte |
hexToByte(String s)
十六进制转byte
|
static byte[] |
hexToBytes(String s)
十六进制转byte[]
|
public static String byteToHex(byte b)
b
- bytepublic static String bytesToHex(byte[] bs)
bs
- byte[]public static byte hexToByte(String s)
s
- hexStringpublic static byte[] hexToBytes(String s)
s
- hexStringCopyright © 2024. All rights reserved.