public class StringUtils extends Object
| Constructor and Description |
|---|
StringUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
bytesToHex(byte[] bytes) |
static byte[] |
hexToBytes(String hex) |
static boolean |
isEmpty(CharSequence cs) |
static boolean |
isNumeric(String str)
check string every char is numeric or false
so string is negative number or include decimal point,will return false
|
static Properties |
parseUrl(String url,
Properties defaults) |
static String |
toHex(byte[] bytes)
Converts a byte array to a hexadecimal string.
|
public static boolean isEmpty(CharSequence cs)
public static boolean isNumeric(String str)
str - public static Properties parseUrl(String url, Properties defaults)
public static byte[] hexToBytes(String hex)
public static String bytesToHex(byte[] bytes)
public static String toHex(byte[] bytes)
bytes - a byte arrayCopyright © 2023. All rights reserved.