com.itextpdf.text.pdf.languages
Class IndicCompositeCharacterComparator

java.lang.Object
  extended by com.itextpdf.text.pdf.languages.IndicCompositeCharacterComparator
All Implemented Interfaces:
Comparator<String>

public class IndicCompositeCharacterComparator
extends Object
implements Comparator<String>

This works on CompositeCharcaters or Juktakshar-s of Indian languages like Bangla, Hindi, etc. CompositeCharcters are single glyphs consisting of more than one characters.

This class works on these CompositeCharacters and places the Strings having higher number of Characters before the one with lower no. This is necessay to properly display the CompositeCharacters when they occur side by side.

Examples of CompositeCharactes from Bangla

Author:
Palash Ray

Constructor Summary
IndicCompositeCharacterComparator()
           
 
Method Summary
 int compare(String o1, String o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

IndicCompositeCharacterComparator

public IndicCompositeCharacterComparator()
Method Detail

compare

public int compare(String o1,
                   String o2)
Specified by:
compare in interface Comparator<String>


Copyright © 2013. All Rights Reserved.