FileDocCategorySizeDatePackage
StringDecomposer.javaAPI DocphoneME MR2 API (J2ME)2103Wed May 02 18:00:46 BST 2007com.sun.j2me.global

StringDecomposer

public interface StringDecomposer
The StringDecomposer interface defines requirements for a class which can be used to decompose / transform string into elements. The decomposition is done in steps (each call to the getNextElement method returns the next element of the decomposed string).

The StringCollator class uses this interface to be independent of a string normalizer.

Fields Summary
public static final int
EOF_ELEMENT
A value which represents the end of the decomposition.
Constructors Summary
Methods Summary
public intgetNextElement()
Returns the next element of the decomposed string. The kind of returned element depends on the type of the "decomposer", but it has to be encoded as a single integer value.

return
the decomposed element or EOF_ELEMENT when the decomposition is at the end

public voidreset()
Restarts the decomposition.