tangentum technologies    
 

Deutsch

   
   
 
    MetaphoneEncoder (Phonetix)
Phonetix
v0.2

com.tangentum.phonetix
Class MetaphoneEncoder

java.lang.Object
  |
  +--com.tangentum.phonetix.PhoneticEncoder
        |
        +--com.tangentum.phonetix.MetaphoneEncoder
Direct Known Subclasses:
DoubleMetaphone, Metaphone

public abstract class MetaphoneEncoder
extends PhoneticEncoder

Abstract base class of "metaphone"-encoders.

Author:
Claus Engel

Field Summary
protected  int maxLength
           
 
Fields inherited from class com.tangentum.phonetix.PhoneticEncoder
EMPTY_KEYS
 
Constructor Summary
MetaphoneEncoder(int maxLength)
          Constructs a phonetic encoder of type "metaphone".
 
Method Summary
protected static boolean isVowel(java.lang.String string, int pos)
           
protected static boolean match(java.lang.String string, int pos, char c)
           
protected static boolean match(java.lang.String string, int pos, java.lang.String[] strings)
           
 
Methods inherited from class com.tangentum.phonetix.PhoneticEncoder
generateKey, generateKeys
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxLength

protected final int maxLength
Constructor Detail

MetaphoneEncoder

public MetaphoneEncoder(int maxLength)
Constructs a phonetic encoder of type "metaphone".

Parameters:
maxLength - the maximal length of the keys to generate by this MetaphoneEncoder. If the given length is lower than zero, the lengths of the generated keys are only limited by the size of the words to encode.
Method Detail

isVowel

protected static boolean isVowel(java.lang.String string,
                                 int pos)

match

protected static boolean match(java.lang.String string,
                               int pos,
                               java.lang.String[] strings)

match

protected static boolean match(java.lang.String string,
                               int pos,
                               char c)

Phonetix
v0.2

Copyright © 1996-2003 Claus Engel. All Rights Reserved.