public final class StringUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsWhitespace(String s)
Returns true if the specified string contains whitespace, false otherwise.
|
static String |
escapeXmlChars(String s)
Escapes the characters '<', '>' and '&' into their XML entity equivalents.
|
public static String escapeXmlChars(String s)
StringEscapeUtils.escapeXml(String) or
StringEscapeUtils.escapeHtml(String) because those methods
escape some unicode characters as well.s - the string to escapepublic static boolean containsWhitespace(String s)
s - the string to check for whitespaceCopyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.