org.cdlib.xtf.util
Class Normalizer

Object
  extended by Normalizer

public class Normalizer
extends Object

Handles Unicode normalization, dynamically choosing whichever of the built-in Java classes is available to do the work (these changed between Java 1.5 and Java 1.6).

Author:
Martin Haye

Nested Class Summary
private static class Normalizer.Jdk15Normalizer
          Normalizer that runs on JDK 1.5 / 5.0
private static class Normalizer.Jdk16Normalizer
          Normalizer that runs on JDK 1.6 / 6.0 and higher
private static interface Normalizer.PlatformNormalizer
          Generic interface for normalizers
 
Field Summary
private static Normalizer.PlatformNormalizer platformNormalizer
           
 
Constructor Summary
Normalizer()
           
 
Method Summary
static String normalize(String in)
          Perform normalization on a string, meaning canonical decomposition followed by canonical composition.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

platformNormalizer

private static Normalizer.PlatformNormalizer platformNormalizer
Constructor Detail

Normalizer

public Normalizer()
Method Detail

normalize

public static String normalize(String in)
Perform normalization on a string, meaning canonical decomposition followed by canonical composition.