public final class

ComposedCharIter

extends Object
java.lang.Object
   ↳ sun.text.ComposedCharIter

Summary

Constants
int DONE Constant that indicates the iteration has completed.
Public Constructors
ComposedCharIter()
Construct a new ComposedCharIter.
Public Methods
String decomposition()
Returns the Unicode decomposition of the current character.
int next()
Returns the next precomposed Unicode character.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int DONE

Constant that indicates the iteration has completed. next() returns this value when there are no more composed characters over which to iterate.

Constant Value: -1 (0xffffffff)

Public Constructors

public ComposedCharIter ()

Construct a new ComposedCharIter. The iterator will return all Unicode characters with canonical decompositions, excluding Korean Hangul characters.

Public Methods

public String decomposition ()

Returns the Unicode decomposition of the current character. This method returns the decomposition of the precomposed character most recently returned by next(). The resulting decomposition is affected by the settings of the options passed to the constructor.

public int next ()

Returns the next precomposed Unicode character. Repeated calls to next return all of the precomposed characters defined by Unicode, in ascending order. After all precomposed characters have been returned, #hasNext will return false and further calls to next will return DONE.