org.jasypt.normalization
Class Normalizer

Object
  extended by org.jasypt.normalization.Normalizer

public final class Normalizer
extends Object

Utility for the normalization of Unicode Strings to NFC form.

This class tries to use the java.text.Normalizer class in JDK 1.6 first and, if it the class is not found (Java version < 6), then it will use the ICU4J com.ibm.icu.text.Normalizer class (in this case, a ClassNotFoundException will be thrown if ICU4J is not present).

Since:
1.5
Author:
Daniel Fernández

Method Summary
static String normalizeToNfc(String message)
          Normalize Unicode-input message to NFC.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

normalizeToNfc

public static String normalizeToNfc(String message)
Normalize Unicode-input message to NFC.

Parameters:
message - the message to be normalized
Returns:
the result of the normalization operation


Copyright © 2011 The JASYPT team. All Rights Reserved.