APIdia Launch Partner
Top Description Fields Constructors Methods
sun.text

public final Class Normalizer

extends Object
Class Inheritance
Imports
jdk.internal.icu.lang.UCharacter, jdk.internal.icu.text.NormalizerBase

This Normalizer is for Unicode 3.2 support for IDNA only. Developers should not use this class.
Since
1.6

Field Summary

Modifier and TypeField and Description
public static final int
UNICODE_3_2

Option to select Unicode 3.2 (without corrigendum 4 corrections) for normalization.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static final int

Returns:

combining class of the given character
getCombiningClass
(int
character to retrieve combining class of
ch
)

Returns the combining class of the given character

public static boolean

Returns:

true if the sequence of char values is normalized; false otherwise.
isNormalized
(CharSequence
The sequence of char values to be checked.
src
,
Normalizer.Form form, int
The normalization option; sun.text.Normalizer#UNICODE_3_2
option
)

Determines if the given sequence of char values is normalized.

public static String

Returns:

The normalized String
normalize
(CharSequence
The sequence of char values to normalize.
src
,
Normalizer.Form form, int
The normalization option; sun.text.Normalizer#UNICODE_3_2
option
)

Normalize a sequence of char values.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

UNICODE_3_2back to summary
public static final int UNICODE_3_2

Option to select Unicode 3.2 (without corrigendum 4 corrections) for normalization.

Constructor Detail

Normalizerback to summary
private Normalizer()

Method Detail

getCombiningClassback to summary
public static final int getCombiningClass(int ch)

Returns the combining class of the given character

Parameters
ch:int

character to retrieve combining class of

Returns:int

combining class of the given character

isNormalizedback to summary
public static boolean isNormalized(CharSequence src, Normalizer.Form form, int option)

Determines if the given sequence of char values is normalized.

Parameters
src:CharSequence

The sequence of char values to be checked.

form:Normalizer.Form

The normalization form; one of java.text.Normalizer.Form#NFC, java.text.Normalizer.Form#NFD, java.text.Normalizer.Form#NFKC, java.text.Normalizer.Form#NFKD

option:int

The normalization option; sun.text.Normalizer#UNICODE_3_2

Returns:boolean

true if the sequence of char values is normalized; false otherwise.

Exceptions
NullPointerException:
If src or form is null.
normalizeback to summary
public static String normalize(CharSequence src, Normalizer.Form form, int option)

Normalize a sequence of char values. The sequence will be normalized according to the specified normalization from.

Parameters
src:CharSequence

The sequence of char values to normalize.

form:Normalizer.Form

The normalization form; one of java.text.Normalizer.Form#NFC, java.text.Normalizer.Form#NFD, java.text.Normalizer.Form#NFKC, java.text.Normalizer.Form#NFKD

option:int

The normalization option; sun.text.Normalizer#UNICODE_3_2

Returns:String

The normalized String

Exceptions
NullPointerException:
If src or form is null.