public class StringUtil extends Object
| Constructor and Description |
|---|
StringUtil() |
| Modifier and Type | Method and Description |
|---|---|
static char[] |
bytesToHexChars(byte[] bytes) |
static char[] |
bytesToHexChars(byte[] bytes,
char[] chars,
int off) |
static byte[] |
hexCharsToBytes(char[] chars) |
static byte[] |
hexCharsToBytes(char[] chars,
int off) |
static byte[] |
hexStringToBytes(String s) |
static byte[] |
hexStringToBytes(String s,
int off) |
static String |
removeSpaces(String s) |
static String |
toHexString(Number n) |
static String |
toString(Object o) |
static String |
toString(Object o,
int maxItems) |
static String[] |
toStringArray(String s) |
public StringUtil()
public static char[] bytesToHexChars(byte[] bytes)
public static char[] bytesToHexChars(byte[] bytes, char[] chars, int off)
public static byte[] hexCharsToBytes(char[] chars)
public static byte[] hexCharsToBytes(char[] chars, int off)
public static byte[] hexStringToBytes(String s)
public static byte[] hexStringToBytes(String s, int off)
public static String toHexString(Number n)
public static String removeSpaces(String s)
public static String[] toStringArray(String s)