|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.codec.language.AbstractCaverphone
public abstract class AbstractCaverphone
Encodes a string into a Caverphone value. This is an algorithm created by the Caversham Project at the University of Otago. It implements the Caverphone 2.0 algorithm:
This class is immutable and thread-safe.
| Constructor Summary | |
|---|---|
AbstractCaverphone()
Creates an instance of the Caverphone encoder |
|
| Method Summary | |
|---|---|
Object |
encode(Object source)
Encodes an Object using the caverphone algorithm. |
boolean |
isEncodeEqual(String str1,
String str2)
Tests if the encodings of two strings are equal. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.commons.codec.StringEncoder |
|---|
encode |
| Constructor Detail |
|---|
public AbstractCaverphone()
| Method Detail |
|---|
public Object encode(Object source)
throws EncoderException
encode in interface Encodersource - Object to encode
EncoderException - if the parameter supplied is not of type java.lang.String
public boolean isEncodeEqual(String str1,
String str2)
throws EncoderException
str1 - First of two strings to comparestr2 - Second of two strings to compare
true if the encodings of these strings are identical, false otherwise.
EncoderException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||