org.apache.pdfbox.util
Class ICU4JImpl

java.lang.Object
  extended by org.apache.pdfbox.util.ICU4JImpl

public class ICU4JImpl
extends Object

This class is an implementation the the ICU4J class. TextNormalize will call this only if the ICU4J library exists in the classpath.

Version:
$Revision: 1.0 $
Author:
Brian Carrier

Constructor Summary
ICU4JImpl()
          Constructor.
 
Method Summary
 String makeLineLogicalOrder(String str, boolean isRtlDominant)
          Takes a line of text in presentation order and converts it to logical order.
 String normalizeDiac(String str)
          Decomposes Diacritic characters to their combining forms.
 String normalizePres(String str)
          Normalize presentation forms of characters to the separate parts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ICU4JImpl

public ICU4JImpl()
Constructor.

Method Detail

makeLineLogicalOrder

public String makeLineLogicalOrder(String str,
                                   boolean isRtlDominant)
Takes a line of text in presentation order and converts it to logical order.

Parameters:
str - String to convert
isRtlDominant - RTL (right-to-left) will be the dominant text direction
Returns:
The converted string
See Also:
TextNormalize.makeLineLogicalOrder(String, boolean)

normalizePres

public String normalizePres(String str)
Normalize presentation forms of characters to the separate parts.

Parameters:
str - String to normalize
Returns:
Normalized form
See Also:
TextNormalize.normalizePres(String)

normalizeDiac

public String normalizeDiac(String str)
Decomposes Diacritic characters to their combining forms.

Parameters:
str - String to be Normalized
Returns:
A Normalized String


Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.