org.apache.commons.codec.language
public class Caverphone extends Object implements StringEncoder
Constructor and Description |
---|
Caverphone()
Creates an instance of the Caverphone encoder
|
Modifier and Type | Method and Description |
---|---|
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.
|
public String caverphone(String txt)
txt
- String to find the caverphone code forpublic Object encode(Object pObject) throws EncoderException
encode
in interface Encoder
pObject
- Object to encodeEncoderException
- if the parameter supplied is not
of type java.lang.Stringpublic String encode(String pString)
encode
in interface StringEncoder
pString
- String object to encodepublic boolean isCaverphoneEqual(String str1, 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.Copyright © 2002-2013 JBoss by Red Hat. All Rights Reserved.