public class RadixTreeSubstitutionAlgo extends Object implements SubstitutionAlgorithm
RadixTree of change-value
pair.RadixTreeSubstitution| Constructor and Description |
|---|
RadixTreeSubstitutionAlgo(Map<String,String> substitutionMap)
Construct
RadixTreeSubstitutionAlgo for the given substitutable key/value
pair by constructing the radix tree for the same. |
| Modifier and Type | Method and Description |
|---|---|
void |
substitute(Substitutable substitutable)
Perform's string substitution.
|
public RadixTreeSubstitutionAlgo(Map<String,String> substitutionMap)
RadixTreeSubstitutionAlgo for the given substitutable key/value
pair by constructing the radix tree for the same.substitutionMap - Map of substitutable key/value pairs.public void substitute(Substitutable substitutable) throws StringSubstitutionException
SubstitutionAlgorithm Reads the character stream from the given Substitutable object,
perform substitution and writes it back to the object.
substitute in interface SubstitutionAlgorithmsubstitutable - Provide input and output stream.StringSubstitutionException - If any error occurs during substitution operation.Copyright © 2017. All rights reserved.