de.hs_rm.cs.lecturenotes.client.core.util
Class StringUtil

java.lang.Object
  extended by de.hs_rm.cs.lecturenotes.client.core.util.StringUtil

public final class StringUtil
extends java.lang.Object

Utility class for Strings. To be used in GWT on client side. Regretfully GWT doesn'T provide the org.apache.common.StringUtils/StringEscapeUtils. Some GWT components also except HTML("xx".getText() to convert chars from HTML to Utf8.

Version:
$LastChangedRevision: 262 $
Author:
Enrico Homann

Field Summary
static java.lang.String UTF8_CAPITAL_OE
          UTF8 representation of the capital german "oe".
static java.lang.String UTF8_CAPITAL_UE
          UTF8 representation of the capital german "ue".
static java.lang.String UTF8_LOWERCASE_OE
          UTF8 representation of the lowercase german "oe".
static java.lang.String UTF8_LOWERCASE_UE
          UTF8 representation of the lowercase german "ue".
static java.lang.String UTF8_SZ
          UTF8 representation of the german sz.
 
Method Summary
 void defaultValues()
          Resets to default values.
static StringUtil getInstance()
          Will return the singleton of this class.
 java.lang.String getUtf8FromHtmlString(java.lang.String input)
          Will return the UTF8 representation for the HTML code given by String input.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UTF8_CAPITAL_OE

public static final java.lang.String UTF8_CAPITAL_OE
UTF8 representation of the capital german "oe".

See Also:
Constant Field Values

UTF8_LOWERCASE_OE

public static final java.lang.String UTF8_LOWERCASE_OE
UTF8 representation of the lowercase german "oe".

See Also:
Constant Field Values

UTF8_CAPITAL_UE

public static final java.lang.String UTF8_CAPITAL_UE
UTF8 representation of the capital german "ue".

See Also:
Constant Field Values

UTF8_LOWERCASE_UE

public static final java.lang.String UTF8_LOWERCASE_UE
UTF8 representation of the lowercase german "ue".

See Also:
Constant Field Values

UTF8_SZ

public static final java.lang.String UTF8_SZ
UTF8 representation of the german sz.

See Also:
Constant Field Values
Method Detail

getInstance

public static StringUtil getInstance()
Will return the singleton of this class.

Returns:
StringUtils

defaultValues

public void defaultValues()
Resets to default values.


getUtf8FromHtmlString

public java.lang.String getUtf8FromHtmlString(java.lang.String input)
Will return the UTF8 representation for the HTML code given by String input.

Parameters:
input - String
Returns:
String