Class RadixTreeSubstitutionAlgo
- java.lang.Object
-
- com.sun.enterprise.admin.servermgmt.stringsubs.impl.algorithm.RadixTreeSubstitutionAlgo
-
- All Implemented Interfaces:
SubstitutionAlgorithm
public class RadixTreeSubstitutionAlgo extends Object implements SubstitutionAlgorithm
Perform's string substitution by constructing theRadixTree
of change-value pair.- See Also:
RadixTreeSubstitution
-
-
Constructor Summary
Constructors Constructor Description RadixTreeSubstitutionAlgo(Map<String,String> substitutionMap)
ConstructRadixTreeSubstitutionAlgo
for the given substitutable key/value pair by constructing the radix tree for the same.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
substitute(Substitutable substitutable)
Perform's string substitution.
-
-
-
Constructor Detail
-
RadixTreeSubstitutionAlgo
public RadixTreeSubstitutionAlgo(Map<String,String> substitutionMap)
ConstructRadixTreeSubstitutionAlgo
for the given substitutable key/value pair by constructing the radix tree for the same.- Parameters:
substitutionMap
- Map of substitutable key/value pairs.
-
-
Method Detail
-
substitute
public void substitute(Substitutable substitutable) throws StringSubstitutionException
Description copied from interface:SubstitutionAlgorithm
Perform's string substitution.Reads the character stream from the given
Substitutable
object, perform substitution and writes it back to the object.- Specified by:
substitute
in interfaceSubstitutionAlgorithm
- Parameters:
substitutable
- Provide input and output stream.- Throws:
StringSubstitutionException
- If any error occurs during substitution operation.
-
-