public class HexUtils extends Object
| Constructor and Description |
|---|
HexUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte |
toByte(char c)
Convert char to byte
|
static byte[] |
toBytes(String hex)
Convert hex string to byte[]
|
static StringBuffer |
toHexString(byte b)
convert byte to hex string
|
static String |
toHexString(byte[] src)
Convert byte[] to hex string
|
static byte[] |
toUnsignedBytes(String key) |
static String |
toUnsignedHexString(byte[] src) |
public static StringBuffer toHexString(byte b)
b - public static String toHexString(byte[] src)
public static byte[] toBytes(String hex)
public static byte toByte(char c)
public static byte[] toUnsignedBytes(String key)
key - public static String toUnsignedHexString(byte[] src)
Copyright © 2021. All rights reserved.