|
|||||
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(java.lang.String s)
Returns true if the specified string contains whitespace, false otherwise. |
static java.lang.String |
escapeXmlChars(java.lang.String s)
Escapes the characters '<', '>' and '&' into their XML entity equivalents. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean containsWhitespace(java.lang.String s)
s
- the string to check for whitespace
public static java.lang.String escapeXmlChars(java.lang.String s)
StringEscapeUtils.escapeXml(String)
or
StringEscapeUtils.escapeHtml(String)
because those methods
escape some unicode characters as well.
s
- the string to escape
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |