public class HexFormat extends Object
| 构造器和说明 |
|---|
HexFormat() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
algorismToHEXString(int algorism) |
static String |
algorismToHexString(int algorism,
int maxLength) |
static String |
AsciiStringToString(String content) |
static int |
binaryToAlgorism(String binary) |
static byte[] |
byteConvert32Bytes(BigInteger n) |
static BigInteger |
byteConvertInteger(byte[] b) |
static String |
byteToHex(byte[] b) |
static int |
byteToInt(byte[] bytes) |
static String |
byteToString(byte[] bytearray) |
static byte |
charToByte(char c) |
static byte[] |
decodeHex(char[] data) |
static char[] |
encodeHex(byte[] data) |
static char[] |
encodeHex(byte[] data,
boolean toLowerCase) |
protected static char[] |
encodeHex(byte[] data,
char[] toDigits) |
static String |
encodeHexString(byte[] data) |
static String |
encodeHexString(byte[] data,
boolean toLowerCase) |
protected static String |
encodeHexString(byte[] data,
char[] toDigits) |
static String |
getHexString(byte[] bytes) |
static String |
getHexString(byte[] bytes,
boolean upperCase) |
static int |
hexStringToAlgorism(String hex) |
static String |
hexStringToBinary(String hex) |
static byte[] |
hexStringToBytes(String hexString) |
static String |
hexStringToString(String hexString,
int encodeType) |
static byte[] |
hexToByte(String hex) |
static byte[] |
intToBytes(int num) |
static boolean |
isHexString(String str) |
static byte[] |
longToBytes(long num) |
static int |
parseToInt(String s,
int defaultInt) |
static int |
parseToInt(String s,
int defaultInt,
int radix) |
static String |
patchHexString(String str,
int maxLength) |
static void |
printHexString(byte[] bytes) |
static String |
StringToAsciiString(String content) |
static byte[] |
subByte(byte[] input,
int startIndex,
int length) |
protected static int |
toDigit(char ch,
int index) |
public static byte[] intToBytes(int num)
public static int byteToInt(byte[] bytes)
public static byte[] longToBytes(long num)
public static byte[] byteConvert32Bytes(BigInteger n)
public static BigInteger byteConvertInteger(byte[] b)
public static String getHexString(byte[] bytes)
public static String getHexString(byte[] bytes, boolean upperCase)
public static void printHexString(byte[] bytes)
public static byte[] hexStringToBytes(String hexString)
public static byte charToByte(char c)
public static char[] encodeHex(byte[] data)
public static char[] encodeHex(byte[] data,
boolean toLowerCase)
protected static char[] encodeHex(byte[] data,
char[] toDigits)
public static String encodeHexString(byte[] data)
public static String encodeHexString(byte[] data, boolean toLowerCase)
protected static String encodeHexString(byte[] data, char[] toDigits)
public static byte[] decodeHex(char[] data)
protected static int toDigit(char ch,
int index)
public static int hexStringToAlgorism(String hex)
public static String algorismToHexString(int algorism, int maxLength)
public static String byteToString(byte[] bytearray)
public static int binaryToAlgorism(String binary)
public static String algorismToHEXString(int algorism)
public static int parseToInt(String s, int defaultInt, int radix)
public static int parseToInt(String s, int defaultInt)
public static byte[] hexToByte(String hex) throws IllegalArgumentException
public static String byteToHex(byte[] b)
public static byte[] subByte(byte[] input,
int startIndex,
int length)
public static boolean isHexString(String str)
Copyright © 2025. All rights reserved.