public class TypeUtils
extends java.lang.Object
Constructor and Description |
---|
TypeUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
HexToString_m(byte[] bytes) |
static java.lang.String |
HexToString(byte[] bytes,
int hexLength) |
static java.lang.String |
IntToString(int value)
This method converts an int to string
(this string only contains 1~9 ASCII chars)
|
static byte[] |
StringToHex_m(java.lang.String str) |
static byte[] |
StringToHex(java.lang.String str,
int hexLength) |
static int |
StringToInt(java.lang.String str)
This method converts a integer string
(i.e. this string only contains 1~9 ASCII chars)
to a real integer type.
|
public static int StringToInt(java.lang.String str)
str
- public static java.lang.String IntToString(int value)
str
- public static byte[] StringToHex(java.lang.String str, int hexLength)
public static java.lang.String HexToString(byte[] bytes, int hexLength)
public static byte[] StringToHex_m(java.lang.String str)
public static java.lang.String HexToString_m(byte[] bytes)