public class StringUtils extends Object
| Constructor and Description |
|---|
StringUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
bytesToHex(byte[] bytes) |
static String |
getBasicUrl(String url) |
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 List<Endpoint> |
parseEndpoints(String endpointsFullStr) |
static Properties |
parseUrl(String url,
Properties defaults) |
static String |
retainHostPortPart(String jdbcUrl) |
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 List<Endpoint> parseEndpoints(String endpointsFullStr) throws SQLException
SQLExceptionpublic static Properties parseUrl(String url, Properties defaults) throws SQLException
SQLExceptionpublic static byte[] hexToBytes(String hex)
public static String bytesToHex(byte[] bytes)
public static String toHex(byte[] bytes)
bytes - a byte arrayCopyright © 2025. All rights reserved.