Uses of Class
org.apache.commons.text.StringSubstitutor
Packages that use StringSubstitutor
Package
Description
Basic classes for text handling.
StringSubstitutorReader is a Reader that performs string
substitution on a source Reader using a StringSubstitutor.-
Uses of StringSubstitutor in org.apache.commons.text
Methods in org.apache.commons.text that return StringSubstitutorModifier and TypeMethodDescriptionstatic StringSubstitutorStringSubstitutor.createInterpolator()Creates a new instance using the interpolator string lookupStringLookupFactory.interpolatorStringLookup().StringSubstitutor.setDisableSubstitutionInValues(boolean disableSubstitutionInValues) Sets a flag whether substitution is done in variable values (recursive).StringSubstitutor.setEnableSubstitutionInVariables(boolean enableSubstitutionInVariables) Sets a flag whether substitution is done in variable names.StringSubstitutor.setEnableUndefinedVariableException(boolean failOnUndefinedVariable) Sets a flag whether exception should be thrown if any variable is undefined.StringSubstitutor.setEscapeChar(char escapeChar) Sets the escape character.StringSubstitutor.setPreserveEscapes(boolean preserveEscapes) Sets a flag controlling whether escapes are preserved during substitution.StringSubstitutor.setValueDelimiter(char valueDelimiter) Sets the variable default value delimiter to use.StringSubstitutor.setValueDelimiter(String valueDelimiter) Sets the variable default value delimiter to use.StringSubstitutor.setValueDelimiterMatcher(StringMatcher valueDelimiterMatcher) Sets the variable default value delimiter matcher to use.StringSubstitutor.setVariablePrefix(char prefix) Sets the variable prefix to use.StringSubstitutor.setVariablePrefix(String prefix) Sets the variable prefix to use.StringSubstitutor.setVariablePrefixMatcher(StringMatcher prefixMatcher) Sets the variable prefix matcher currently in use.StringSubstitutor.setVariableResolver(StringLookup variableResolver) Sets the VariableResolver that is used to lookup variables.StringSubstitutor.setVariableSuffix(char suffix) Sets the variable suffix to use.StringSubstitutor.setVariableSuffix(String suffix) Sets the variable suffix to use.StringSubstitutor.setVariableSuffixMatcher(StringMatcher suffixMatcher) Sets the variable suffix matcher currently in use.Constructors in org.apache.commons.text with parameters of type StringSubstitutorModifierConstructorDescriptionCreates a new instance based on the given StringSubstitutor. -
Uses of StringSubstitutor in org.apache.commons.text.io
Constructors in org.apache.commons.text.io with parameters of type StringSubstitutorModifierConstructorDescriptionStringSubstitutorReader(Reader reader, StringSubstitutor stringSubstitutor) Constructs a new instance.