| java.lang.Object com.gargoylesoftware.htmlunit.util.StringUtils
StringUtils | final public class StringUtils (Code) | | String utilities class for utility functions not covered by third party libraries.
version: $Revision: 2132 $ author: Daniel Gredler |
Method Summary | |
public static boolean | containsWhitespace(String s) Returns true if the specified string contains whitespace, false otherwise. | public static String | escapeXmlChars(String s) Escapes the characters '<', '>' and '&' into their XML entity equivalents. |
containsWhitespace | public static boolean containsWhitespace(String s)(Code) | | Returns true if the specified string contains whitespace, false otherwise.
Parameters: s - the string to check for whitespace true if the specified string contains whitespace, false otherwise |
escapeXmlChars | public static String escapeXmlChars(String s)(Code) | | Escapes the characters '<', '>' and '&' into their XML entity equivalents. Note that
sometimes we have to use this method instead of
org.apache.commons.lang.StringEscapeUtils.escapeXml(String) or
org.apache.commons.lang.StringEscapeUtils.escapeHtml(String) because those methods
escape some unicode characters as well.
Parameters: s - the string to escape the escaped form of the specified string |
|
|