public abstract class AbstractCaverphone extends Object implements StringEncoder
This class is immutable and thread-safe.
Constructor and Description |
---|
AbstractCaverphone()
Creates an instance of the Caverphone encoder
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
encode
public AbstractCaverphone()
public Object encode(Object source) throws EncoderException
encode
in interface Encoder
source
- Object to encodeEncoderException
- if the parameter supplied is not of type java.lang.Stringpublic boolean isEncodeEqual(String str1, String str2) throws EncoderException
str1
- First of two strings to comparestr2
- Second of two strings to comparetrue
if the encodings of these strings are identical, false
otherwise.EncoderException
- thrown if there is an error condition during the encoding process.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.