org.sakaiproject.search.component.service.impl
Class StringUtils

java.lang.Object
  extended by org.sakaiproject.search.component.service.impl.StringUtils

public class StringUtils
extends Object

Author:
ieb

Field Summary
static char HIGHEST_CHARACTER
           
static char[][] specialChars
           
 
Constructor Summary
StringUtils()
           
 
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
 

Field Detail

HIGHEST_CHARACTER

public static final char HIGHEST_CHARACTER
See Also:
Constant Field Values

specialChars

public static final char[][] specialChars
Constructor Detail

StringUtils

public StringUtils()
Method Detail

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.