Caverphone2, will be removed in 2.0.@Deprecated public class Caverphone extends java.lang.Object implements StringEncoder
Caverphone2 instance.
This is an algorithm created by the Caversham Project at the University of Otago. It implements the Caverphone 2.0
algorithm:| Modifier and Type | Field and Description |
|---|---|
private Caverphone2 |
encoder
Deprecated.
Delegate to a
Caverphone2 instance to avoid code duplication. |
| Constructor and Description |
|---|
Caverphone()
Deprecated.
Creates an instance of the Caverphone encoder
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
caverphone(java.lang.String source)
Deprecated.
Encodes the given String into a Caverphone value.
|
java.lang.Object |
encode(java.lang.Object obj)
Deprecated.
Encodes an Object using the caverphone algorithm.
|
java.lang.String |
encode(java.lang.String str)
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.
|
private final Caverphone2 encoder
Caverphone2 instance to avoid code duplication.public Caverphone()
public java.lang.String caverphone(java.lang.String source)
source - String the source stringpublic java.lang.Object encode(java.lang.Object obj)
throws EncoderException
encode in interface Encoderobj - Object to encodeEncoderException - if the parameter supplied is not of type java.lang.Stringpublic java.lang.String encode(java.lang.String str)
encode in interface StringEncoderstr - String object to encodepublic boolean isCaverphoneEqual(java.lang.String str1,
java.lang.String str2)
str1 - First of two strings to comparestr2 - Second of two strings to comparetrue if the caverphones of these strings are identical, false otherwise.commons-codec version 1.10-SNAPSHOT - Copyright © 2002-2015 - Apache Software Foundation