org.sakaiproject.search.component.service.impl
Class StringUtils
java.lang.Object
org.sakaiproject.search.component.service.impl.StringUtils
public class StringUtils
- extends Object
- Author:
- ieb
|
Method Summary |
static String |
escapeHtml(String value,
boolean escapeNewlines)
This is a copy of the method in FormattedText... its here because FormattedText
depends on the component manager, and I need to run simple unit tests |
static String |
xmlEscape(String toEscape)
Deprecated. Use Commons-lang StringEscapeUtils.escapeXml as this code might result in NPE's |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HIGHEST_CHARACTER
public static final char HIGHEST_CHARACTER
- See Also:
- Constant Field Values
specialChars
public static final char[][] specialChars
StringUtils
public StringUtils()
escapeHtml
public static String escapeHtml(String value,
boolean escapeNewlines)
- This is a copy of the method in FormattedText... its here because FormattedText
depends on the component manager, and I need to run simple unit tests
- Parameters:
value - escapeNewlines -
- Returns:
- deprecated use commons-lang StringEscapeUtils.escapeHTML
xmlEscape
public static String xmlEscape(String toEscape)
- Deprecated. Use Commons-lang StringEscapeUtils.escapeXml as this code might result in NPE's
- Parameters:
toEscape -
- Returns:
Copyright © 2003-2012 Sakai Project. All Rights Reserved.