|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.util.StringUtils
public final class StringUtils
String utilities class for utility functions not covered by third party libraries.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 escape
public static boolean containsWhitespace(String s)
s
- the string to check for whitespace
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |