|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.icu.text.Transliterator | +--com.ibm.icu.text.CompoundTransliterator
A transliterator that is composed of two or more other transliterator objects linked together. For example, if one transliterator transliterates from script A to script B, and another transliterates from script B to script C, the two may be combined to form a new transliterator from A to C.
Composed transliterators may not behave as expected. For
example, inverses may not combine to form the identity
transliterator. See the class documentation for Transliterator
for details.
Copyright © IBM Corporation 1999. All rights reserved.
Inner classes inherited from class com.ibm.icu.text.Transliterator |
Transliterator.Factory, Transliterator.Position |
Fields inherited from class com.ibm.icu.text.Transliterator |
FORWARD, ID_DELIM, ID_SEP, REVERSE, VARIANT_SEP |
Constructor Summary | |
CompoundTransliterator(java.lang.String ID)
Constructs a new forward compound transliterator with no filter. |
|
CompoundTransliterator(java.lang.String ID,
int direction)
Constructs a new compound transliterator with no filter. |
|
CompoundTransliterator(java.lang.String ID,
int direction,
UnicodeFilter filter)
Constructs a new compound transliterator. |
|
CompoundTransliterator(Transliterator[] transliterators)
Constructs a new compound transliterator given an array of transliterators. |
|
CompoundTransliterator(Transliterator[] transliterators,
UnicodeFilter filter)
Constructs a new compound transliterator given an array of transliterators. |
Method Summary | |
int |
getCount()
Returns the number of transliterators in this chain. |
Transliterator |
getTransliterator(int index)
Returns the transliterator at the given index in this chain. |
protected void |
handleTransliterate(Replaceable text,
Transliterator.Position index,
boolean incremental)
Implements Transliterator.handleTransliterate(com.ibm.icu.text.Replaceable, com.ibm.icu.text.Transliterator.Position, boolean) . |
java.lang.String |
toRules(boolean escapeUnprintable)
Deprecated. To be removed after 2002-sep-30. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CompoundTransliterator(Transliterator[] transliterators, UnicodeFilter filter)
transliterators
- array of Transliterator
objectsfilter
- the filter. Any character for which
filter.contains() returns false will not be
altered by this transliterator. If filter is
null then no filtering is applied.public CompoundTransliterator(Transliterator[] transliterators)
transliterators
- array of Transliterator
objectspublic CompoundTransliterator(java.lang.String ID, int direction, UnicodeFilter filter)
ID
- compound IDdirection
- either Transliterator.FORWARD or Transliterator.REVERSEfilter
- a global filter for this compound transliterator
or nullpublic CompoundTransliterator(java.lang.String ID, int direction)
ID
- compound IDdirection
- either Transliterator.FORWARD or Transliterator.REVERSEpublic CompoundTransliterator(java.lang.String ID)
ID
- compound IDMethod Detail |
public int getCount()
public Transliterator getTransliterator(int index)
index
- index into chain, from 0 to getCount() - 1
public java.lang.String toRules(boolean escapeUnprintable)
toRules
in class Transliterator
escapeUnprintable
- if TRUE then convert unprintable
character to their hex escape representations, \\uxxxx or
\\Uxxxxxxxx. Unprintable characters are those other than
U+000A, U+0020..U+007E.protected void handleTransliterate(Replaceable text, Transliterator.Position index, boolean incremental)
Transliterator.handleTransliterate(com.ibm.icu.text.Replaceable, com.ibm.icu.text.Transliterator.Position, boolean)
.handleTransliterate
in class Transliterator
com.ibm.icu.text.Transliterator
text
- the buffer holding transliterated and
untransliterated textpos
- the start and limit of the text, the position
of the cursor, and the start and limit of transliteration.incremental
- if true, assume more text may be coming after
pos.contextLimit. Otherwise, assume the text is complete.Transliterator.transliterate(com.ibm.icu.text.Replaceable, int, int)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |