Interface SubstitutionAlgorithm
- All Known Implementing Classes:
RadixTreeSubstitutionAlgo,StringReplacementAlgo
public interface SubstitutionAlgorithm
Algorithm to perform the string substitution.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsubstitute(Substitutable substituable) Perform's string substitution.
-
Method Details
-
substitute
Perform's string substitution.Reads the character stream from the given
Substitutableobject, perform substitution and writes it back to the object.- Parameters:
substituable- Provide input and output stream.- Throws:
StringSubstitutionException- If any error occurs during substitution operation.
-