|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.commons.codec.language.Soundex
public class Soundex
Encodes a string into a refined soundex value. A refined soundex code is optimized for spell checking word. "Soundex" method originally developed by Margaret Odell and Robert Russell http://www.bluepoof.com/Soundex/info2.html
TODO : Internationalize Exception Messages
| Field Summary | |
|---|---|
static Soundex |
US_ENGLISH
|
static char[] |
US_ENGLISH_MAPPING
|
| Constructor Summary | |
|---|---|
Soundex()
|
|
Soundex(char[] mapping)
|
|
| Method Summary | |
|---|---|
Object |
encode(Object pObject)
All encoders allow a library-user to pass an Object and get an Object in return. |
String |
encode(String pString)
Encode a String and produce a String. |
int |
getMaxLength()
Returns the maxLength. |
void |
setMaxLength(int maxLength)
Sets the maxLength. |
String |
soundex(String str)
Get the SoundEx value of a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final char[] US_ENGLISH_MAPPING
public static final Soundex US_ENGLISH
| Constructor Detail |
|---|
public Soundex()
public Soundex(char[] mapping)
| Method Detail |
|---|
public String soundex(String str)
public Object encode(Object pObject)
throws EncoderException
Encoder
encode in interface EncoderpObject - An object ot encode
EncoderException - an encoder exception is
thrown if the encoder experiences a failure
condition during the encoding process.
public String encode(String pString)
throws EncoderException
StringEncoder
encode in interface StringEncoderpString - a String to encode
EncoderException - thrown if there is
an error conidition during the Encoding process.public int getMaxLength()
public void setMaxLength(int maxLength)
maxLength - The maxLength to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||