Oracle® Globalization Development Kit Java API Reference
10g Release 1 (10.1.0.0)

Part No. B10971-02

oracle.i18n.text
Class OraNormalizer

java.lang.Object
  |
  +--oracle.i18n.text.OraNormalizer

public class OraNormalizer
extends Object

The OraNormalizer class is a class used for normalizing strings following the Unicode Standard. Unicode characters may have different canonical formats. Before you can accurately compare characters, you must call the methods in this class to make sure that they are in the same canonical format. For more information regarding Unicode Normalization and the Unicode Standard, please refer to Technical Report 15 at www.unicode.org.


Method Summary
void canonicalSort(char[] sequence)
This method takes a char[] and performs canonical sort on the sequence.
String compose(String sequence)
This is the normalization method.
static oracle.i18n.text.OraNormalizer getInstance()
Returns a shared OraNormalizer instance to the user.

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

getInstance

public static oracle.i18n.text.OraNormalizer getInstance()
Returns a shared OraNormalizer instance to the user.
Returns:
an OraNormalizer instance

canonicalSort

public void canonicalSort(char[] sequence)
This method takes a char[] and performs canonical sort on the sequence. The character string before and after this operation is considered equivalent by the Unicode Standard.
Parameters:
sequence - a string to sort

compose

public String compose(String sequence)
This is the normalization method. It normalizes by composing the Unicode characters after which it performs a canonical sort on the string.
Parameters:
sequence - a string to compose
Returns:
the composed string


Oracle® Globalization Development Kit Java API Reference
10g Release 1 (10.1.0.0)

Part No. B10971-02

Copyright © 2003, 2004, Oracle. All rights reserved.