public class StringUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NEWLINE
The String to use for an OS specific line separator.
|
| Constructor and Description |
|---|
StringUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
findMatchWithWildcard(char[] src,
char[] pat) |
static boolean |
isEmpty(String string)
Returns true if a string is null or empty.
|
static String |
prettifyString(String string)
Returns a prettified version of the string, or the original
string if the operation is not possible.
|
static String |
prettifyXML(String xml)
Returns a prettified version of the XML, with indentations and
linefeeds.
|
static String |
substitute(String str,
String from,
String to) |
public static final String NEWLINE
public static boolean findMatchWithWildcard(char[] src,
char[] pat)
public static String prettifyXML(String xml)
xml - the xml stringpublic static String prettifyString(String string)
string - the string to checkpublic static boolean isEmpty(String string)
string - the String to checkCopyright © 2015 The Apache Software Foundation. All rights reserved.