public class StringUtils
extends java.lang.Object
Common String manipulation routines.
Originally from Turbine and the GenerationJavaCore library.
| Constructor and Description |
|---|
StringUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isBlank(java.lang.String str)
Checks if a (trimmed) String is
null or blank. |
static java.lang.String |
replace(java.lang.String text,
java.lang.String repl,
java.lang.String with)
Replace all occurrences of a String within another String.
|
static java.lang.String[] |
split(java.lang.String text,
java.lang.String separator) |
public static java.lang.String[] split(java.lang.String text,
java.lang.String separator)
public static java.lang.String replace(java.lang.String text,
java.lang.String repl,
java.lang.String with)
Replace all occurrences of a String within another String.
A null reference passed to this method is a no-op.
text - text to search and replace inrepl - String to search forwith - String to replace withpublic static boolean isBlank(java.lang.String str)
Checks if a (trimmed) String is null or blank.
str - the String to checktrue if the String is null, or
length zero once trimmedCopyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.