java.lang.Object | |
↳ | org.apache.commons.codec.language.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:
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an instance of the Caverphone encoder
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Find the caverphone value of a String.
| |||||||||||
Encodes an Object using the caverphone algorithm.
| |||||||||||
Encodes a String using the Caverphone algorithm.
| |||||||||||
Tests if the caverphones of two strings are identical.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.commons.codec.Encoder
| |||||||||||
From interface
org.apache.commons.codec.StringEncoder
|
Creates an instance of the Caverphone encoder
Find the caverphone value of a String.
txt | String to find the caverphone code for |
---|
Encodes an Object using the caverphone algorithm. This method is provided in order to satisfy the requirements of the Encoder interface, and will throw an EncoderException if the supplied object is not of type java.lang.String.
pObject | Object to encode |
---|
EncoderException | if the parameter supplied is not of type java.lang.String |
---|
Encodes a String using the Caverphone algorithm.
pString | String object to encode |
---|
Tests if the caverphones of two strings are identical.
str1 | First of two strings to compare |
---|---|
str2 | Second of two strings to compare |
true
if the caverphones of these strings are identical,
false
otherwise.