com.basecmp.core.util
Class CharacterTransformer

java.lang.Object
  extended bycom.basecmp.core.util.CharacterTransformer

public class CharacterTransformer
extends java.lang.Object

Class with static methods to translate predefined characters of the input-string into subsitution characters, e.g. the german umlaut 'ä' expands into 'ae' or the french accent 'á' translates into a simple 'a'. The translation is based on the ResourceBundle 'i18n.CharacterTransformer'. Each bundle contains the translations for it's locale native characters only. Currently supported locales are:

Author:
wolfgang

Constructor Summary
CharacterTransformer()
           
 
Method Summary
static java.lang.String transform(java.lang.String in)
          Transforms the input-string using all entries of default ResourceBundle (which is NOT the bundle of the default locale).
static java.lang.String transform(java.lang.String in, java.util.Locale l)
          Transforms the input-string using all entries of the given locale's ResourceBundle.
static java.lang.String transform(java.lang.String in, java.lang.String language)
          Transforms the input-string using all entries of the given (ISO) language's ResourceBundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterTransformer

public CharacterTransformer()
Method Detail

transform

public static java.lang.String transform(java.lang.String in)
Transforms the input-string using all entries of default ResourceBundle (which is NOT the bundle of the default locale).


transform

public static java.lang.String transform(java.lang.String in,
                                         java.util.Locale l)
Transforms the input-string using all entries of the given locale's ResourceBundle.


transform

public static java.lang.String transform(java.lang.String in,
                                         java.lang.String language)
Transforms the input-string using all entries of the given (ISO) language's ResourceBundle.



Copyright © 2004 by basecmp® - Professional Web Solutions