|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.codec.language.Caverphone
Caverphone2
, will be removed in 2.0.
public class Caverphone
Encodes a string into a Caverphone 2.0 value. Delegate to a Caverphone2
instance.
This is an algorithm created by the Caversham Project at the University of Otago. It implements the Caverphone 2.0
algorithm:
Field Summary | |
---|---|
private Caverphone2 |
encoder
Deprecated. Delegate to a Caverphone2 instance to avoid code duplication. |
Constructor Summary | |
---|---|
Caverphone()
Deprecated. Creates an instance of the Caverphone encoder |
Method Summary | |
---|---|
java.lang.String |
caverphone(java.lang.String source)
Deprecated. Encodes the given String into a Caverphone value. |
java.lang.Object |
encode(java.lang.Object pObject)
Deprecated. Encodes an Object using the caverphone algorithm. |
java.lang.String |
encode(java.lang.String pString)
Deprecated. Encodes a String using the Caverphone algorithm. |
boolean |
isCaverphoneEqual(java.lang.String str1,
java.lang.String str2)
Deprecated. 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 |
Field Detail |
---|
private final Caverphone2 encoder
Caverphone2
instance to avoid code duplication.
Constructor Detail |
---|
public Caverphone()
Method Detail |
---|
public java.lang.String caverphone(java.lang.String source)
source
- String the source string
public java.lang.Object encode(java.lang.Object pObject) throws EncoderException
encode
in interface Encoder
pObject
- Object to encode
EncoderException
- if the parameter supplied is not of type java.lang.Stringpublic java.lang.String encode(java.lang.String pString)
encode
in interface StringEncoder
pString
- String object to encode
public boolean isCaverphoneEqual(java.lang.String str1, java.lang.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 |