|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.mdm.index.phonetic.Phoneticizer
Manages all Phonetic Encoder instances and provides access to their functionality by name
| Constructor Summary | |
Phoneticizer()
Creates new Phoneticizer |
|
| Method Summary | |
java.lang.String |
encode(java.lang.String strToEncode,
java.lang.String encodingType,
java.lang.String domain)
Encode a string phoneticaly with the relevant phonetic encoder for the specified encodingType |
(package private) void |
registerPhoneticEncoders()
Read the available encoders from a Configuration, instantiate them and populate the internal map of encoding type to PhoneticEncoder |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Phoneticizer()
throws PhoneticEncoderException
PhoneticEncoderException - if the configured encoders can not be registred| Method Detail |
public java.lang.String encode(java.lang.String strToEncode,
java.lang.String encodingType,
java.lang.String domain)
throws PhoneticEncoderException
strToEncode - The string to encodeencodingType - The phonetic encoding type, which maps onto a responsible encoderdomain - A domain marking the country/language context. An optional feature
for an encoder to implement.
PhoneticEncoderException - if no phonetic encoder is present for the
specified encodingType or the encoding by the PhoneticEncoder fails.
void registerPhoneticEncoders()
throws PhoneticEncoderException
PhoneticEncoderException - if the encoders could not be loaded or registered
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Sun Microsystems, Inc.