|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.codec.language.Caverphone
public class Caverphone
Encodes a string into a Caverphone value. This is an algorithm created the Caversham Project at the University of Otago. It implements the Caverphone 2.0 algorithm:
Constructor Summary | |
---|---|
Caverphone()
Creates an instance of the Caverphone encoder |
Method Summary | |
---|---|
String |
caverphone(String txt)
Find the caverphone value of a String. |
Object |
encode(Object pObject)
Encodes an Object using the caverphone algorithm. |
String |
encode(String pString)
Encodes a String using the Caverphone algorithm. |
boolean |
isCaverphoneEqual(String str1,
String str2)
Tests if the caverphones of two strings are identical. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Caverphone()
Method Detail |
---|
public String caverphone(String txt)
txt
- String to find the caverphone code for
public Object encode(Object pObject) throws EncoderException
encode
in interface Encoder
pObject
- Object to encode
EncoderException
- if the parameter supplied is not
of type java.lang.Stringpublic String encode(String pString)
encode
in interface StringEncoder
pString
- String object to encode
public boolean isCaverphoneEqual(String str1, String str2)
str1
- First of two strings to comparestr2
- Second of two strings to compare
true
if the caverphones of these strings are identical,
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |