public abstract class AbstractCaverphone extends java.lang.Object implements StringEncoder
This class is immutable and thread-safe.
| Constructor and Description |
|---|
AbstractCaverphone()
Constructs a new instance for subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
encode(java.lang.Object source)
Encodes an Object using the Caverphone algorithm.
|
boolean |
isEncodeEqual(java.lang.String str1,
java.lang.String str2)
Tests if the encodings of two strings are equal.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitencodepublic AbstractCaverphone()
public java.lang.Object encode(java.lang.Object source)
throws EncoderException
String.encode in interface Encodersource - Object to encode.String) containing the Caverphone code which corresponds to the String
supplied.EncoderException - if the parameter supplied is not of type String.public boolean isEncodeEqual(java.lang.String str1,
java.lang.String str2)
throws EncoderException
str1 - First of two strings to compare.str2 - Second of two strings to compare.true if the encodings of these strings are identical, false otherwise.EncoderException - thrown if there is an error condition during the encoding process.Copyright © 2010 - 2025 Adobe. All Rights Reserved