public class StringReplacementAlgo extends Object implements SubstitutionAlgorithm
| Constructor and Description |
|---|
StringReplacementAlgo(Map<String,String> substitutionMap)
Construct
StringReplacementAlgo for the given substitutable key/value
pair. |
public StringReplacementAlgo(Map<String,String> substitutionMap)
StringReplacementAlgo for the given substitutable key/value
pair.substitutionMap - Map of substitutable key/value pairs.public void substitute(Substitutable resolver) throws StringSubstitutionException
SubstitutionAlgorithm Reads the character stream from the given Substitutable object,
perform substitution and writes it back to the object.
substitute in interface SubstitutionAlgorithmresolver - Provide input and output stream.StringSubstitutionException - If any error occurs during substitution operation.Copyright © 2015. All rights reserved.