|
|||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
com.tangentum.phonetix
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Field Summary |
| Fields inherited from class com.tangentum.phonetix.PhoneticEncoder |
EMPTY_KEYS |
| Constructor Summary | |
Soundex()
Constructs an original Soundex encoder which generates keys of length 4. |
|
Soundex(boolean full)
Constructs a Soundex encoder which generates keys of length 4. |
|
Soundex(boolean full,
int length)
Constructs a Soundex encoder which generates keys of given length. |
|
Soundex(int length)
Constructs an original Soundex encoder which generates keys of given length. |
|
| Method Summary | |
java.lang.String |
generateKey(java.lang.String word)
Returns the encoding of the given word. |
java.lang.String[] |
generateKeys(java.lang.String word)
Returns the encoding of the given word. |
static void |
main(java.lang.String[] argv)
Test of algorithm with default constructed encoder. |
java.lang.String |
toString()
Returns a String identifying the algorithm. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Soundex(boolean full,
int length)
full - a flag which specifies, whether the first character has to
to be encoded, or not. If false, then this encoder works
like the original soundex described by Knuth, i.e. 'Knuth'
will become 'K530'. If true, then this encoder will encode
the first character too, i.e. 'Knuth' will become '2530'.length - the length of the keys to generate.public Soundex(boolean full)
full - a flag which specifies, whether the first character has to
to be encoded, or not. If false, this encoder works
like the original soundex described by Knuth, i.e. 'Knuth'
will become 'K530'. If true, this encoder will encode
the first character too, i.e. 'Knuth' will become '2530'.public Soundex(int length)
length - the length of the keys to generate.public Soundex()
| Method Detail |
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String[] generateKeys(java.lang.String word)
generateKeys in class PhoneticEncoderword - the word to encode.
null.public java.lang.String generateKey(java.lang.String word)
generateKey in class PhoneticEncoderword - the word to encode.
null.public static void main(java.lang.String[] argv)
|
Phonetix v0.2 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

