degu.util.string
Class DeguStringUtils

java.lang.Object
  extended by degu.util.string.DeguStringUtils

public class DeguStringUtils
extends java.lang.Object


Constructor Summary
DeguStringUtils()
           
 
Method Summary
static int caseInSensitiveIndexOf(java.lang.String source, java.lang.String target)
          returns the first occurence of target in source (the case doesn't matter)
static java.lang.String escapeHtml(java.lang.String str)
           
static java.lang.String escapeHtml(java.lang.String str, java.lang.String[] preserveTags)
           
static java.lang.String escapeHtmlDefault(java.lang.String str)
           
static java.lang.String highlightFirst(java.lang.String source, java.lang.String target, java.lang.String highlight)
          Highlights target in source.
static java.lang.String MimeTypeT2StringMapper(MimeTypeT mimeType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeguStringUtils

public DeguStringUtils()
Method Detail

escapeHtml

public static java.lang.String escapeHtml(java.lang.String str)

escapeHtml

public static java.lang.String escapeHtml(java.lang.String str,
                                          java.lang.String[] preserveTags)

escapeHtmlDefault

public static java.lang.String escapeHtmlDefault(java.lang.String str)

highlightFirst

public static java.lang.String highlightFirst(java.lang.String source,
                                              java.lang.String target,
                                              java.lang.String highlight)
Highlights target in source. The search for target in source is not case sensitive.

Parameters:
source -
replacement -
Returns:

caseInSensitiveIndexOf

public static int caseInSensitiveIndexOf(java.lang.String source,
                                         java.lang.String target)
returns the first occurence of target in source (the case doesn't matter)

Parameters:
source -
target -
Returns:

MimeTypeT2StringMapper

public static java.lang.String MimeTypeT2StringMapper(MimeTypeT mimeType)