|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.mdm.index.phonetic.impl.Nysiis
Encode a string using the NYSIIS algorithm.
| Field Summary | |
static java.lang.String |
ENCODING_TYPE
Informative String about the encoding type this encoder does |
(package private) java.lang.StringBuffer |
word
|
| Constructor Summary | |
Nysiis()
Creates new Nysiis |
|
| Method Summary | |
java.lang.String |
encode(java.lang.String value)
Encode the value using DoubleMetaphone. |
java.lang.String |
encode(java.lang.String originalWord,
java.lang.String domain)
Encode a string phoneticaly using NYSIIS |
java.lang.String |
getEncodingType()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String ENCODING_TYPE
java.lang.StringBuffer word
| Constructor Detail |
public Nysiis()
| Method Detail |
public java.lang.String encode(java.lang.String value)
throws PhoneticEncoderException
encode in interface PhoneticEncodervalue - String to encode
PhoneticEncoderException - thrown if there is an exception during
the encoding process.
public java.lang.String encode(java.lang.String originalWord,
java.lang.String domain)
throws PhoneticEncoderException
encode in interface PhoneticEncoderoriginalWord - The string to encodedomain - A domain marking the country/language context. An optional feature
for an encoder to implement.
This encoder does not currently support domains.
PhoneticEncoderException - if the encoding fails.public java.lang.String getEncodingType()
PhoneticEncoder
getEncodingType in interface PhoneticEncoder
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Sun Microsystems, Inc.