public final class StringUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
addDefaultPortIfMissing(String urlString) |
static String |
addDefaultPortIfMissing(String urlString,
String defaultPort) |
static String |
capitalize(String name)
Return input string with first character in upper case.
|
static String |
diff(String str1,
String str2) |
static String |
getFirstFound(String contents,
String regex) |
static boolean |
isEmpty(List<String> list) |
static boolean |
isEmpty(String str) |
static Predicate<String> |
notEmpty() |
static String |
periodToSlashes(String s) |
static String |
slashesToPeriod(String s) |
static byte[] |
toBytes(String str,
String enc) |
static byte[] |
toBytesASCII(String str) |
static byte[] |
toBytesUTF8(String str) |
static String |
toHexString(byte[] bytes) |
static String |
uncapitalize(String str) |
public static boolean isEmpty(String str)
public static String addDefaultPortIfMissing(String urlString, String defaultPort)
public static String capitalize(String name)
name
- input string.public static byte[] toBytesUTF8(String str)
public static byte[] toBytesASCII(String str)
public static String toHexString(byte[] bytes)
Apache CXF