@Deprecated public class StringUtils extends Object
| Constructor and Description |
|---|
StringUtils()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkDataSize(String data,
String dataName,
int errorSize,
boolean throwIfErr)
Deprecated.
check string data size
|
static boolean |
equals(String a,
String b)
Deprecated.
Equals boolean.
|
static boolean |
equalsIgnoreCase(String a,
String b)
Deprecated.
Equals ignore case boolean.
|
static boolean |
hasLowerCase(String str)
Deprecated.
|
static boolean |
hasUpperCase(String str)
Deprecated.
|
static String |
hump2Line(String str)
Deprecated.
hump to Line or line to hump, only spring environment use
|
static byte[] |
inputStream2Bytes(InputStream is)
Deprecated.
Input stream to byte array
|
static String |
inputStream2String(InputStream is)
Deprecated.
Input stream 2 string string.
|
static boolean |
isBlank(String str)
Deprecated.
Is blank string ?
|
static boolean |
isEmpty(CharSequence cs)
Deprecated.
Checks if a CharSequence is empty ("") or null.
|
static boolean |
isNotBlank(String str)
Deprecated.
Is Not blank string ?
|
static boolean |
isNotEmpty(CharSequence cs)
Deprecated.
Checks if a CharSequence is not empty ("") and not null.
|
static boolean |
isNullOrEmpty(String str)
Deprecated.
Is empty boolean.
|
static String |
join(Iterator iterator,
String separator)
Deprecated.
|
static String |
toString(Object obj)
Deprecated.
Object.toString()
|
static String |
trim(String str)
Deprecated.
Trim string, or null if string is null.
|
static String |
trimToNull(String str)
Deprecated.
Trim string to null if empty("").
|
public static boolean isNullOrEmpty(String str)
str - the strpublic static boolean isBlank(String str)
str - the strpublic static boolean isNotBlank(String str)
str - the strpublic static boolean equals(String a, String b)
a - the ab - the bpublic static boolean equalsIgnoreCase(String a, String b)
a - the ab - the bpublic static String inputStream2String(InputStream is)
is - the ispublic static byte[] inputStream2Bytes(InputStream is)
is - the ispublic static String toString(Object obj)
obj - the objpublic static String trimToNull(String str)
str - the String to be trimmed, may be nullpublic static String trim(String str)
str - the String to be trimmed, may be nullnull if null String inputpublic static boolean isEmpty(CharSequence cs)
cs - the CharSequence to check, may be nulltrue if the CharSequence is empty or nullpublic static boolean isNotEmpty(CharSequence cs)
cs - the CharSequence to check, may be nulltrue if the CharSequence is not empty and not nullpublic static String hump2Line(String str)
str - strpublic static boolean checkDataSize(String data, String dataName, int errorSize, boolean throwIfErr)
data - the strdataName - the data nameerrorSize - throw exception if size > errorSizepublic static boolean hasLowerCase(String str)
public static boolean hasUpperCase(String str)
Copyright © 2025 Apache. All rights reserved.