public final class HexUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
bytesToHex(byte[] bytes) |
static int |
hexToInt(char left,
char right) |
static String |
numberToHexString(byte num) |
static String |
numberToHexString(char num) |
static String |
numberToHexString(int num) |
static String |
numberToHexString(long num) |
static String |
numberToHexString(short num) |
static byte[] |
stringToBytes(String hex) |
public static int hexToInt(char left,
char right)
public static String bytesToHex(byte[] bytes)
public static byte[] stringToBytes(String hex)
public static String numberToHexString(byte num) throws IllegalAccessException
IllegalAccessExceptionpublic static String numberToHexString(short num) throws IllegalAccessException
IllegalAccessExceptionpublic static String numberToHexString(char num) throws IllegalAccessException
IllegalAccessExceptionpublic static String numberToHexString(int num) throws IllegalAccessException
IllegalAccessExceptionpublic static String numberToHexString(long num) throws IllegalAccessException
IllegalAccessExceptionCopyright © 2019. All rights reserved.