Interface SubstitutionAlgorithm
-
- All Known Implementing Classes:
RadixTreeSubstitutionAlgo
,StringReplacementAlgo
public interface SubstitutionAlgorithm
Algorithm to perform the string substitution.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
substitute(Substitutable substituable)
Perform's string substitution.
-
-
-
Method Detail
-
substitute
void substitute(Substitutable substituable) throws StringSubstitutionException
Perform's string substitution.Reads the character stream from the given
Substitutable
object, 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.
-
-