Uses of Class
org.apache.commons.text.StringSubstitutor
| Package | Description |
|---|---|
| org.apache.commons.text |
Basic classes for text handling.
|
| org.apache.commons.text.io |
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 StringSubstitutor Modifier and Type Method Description static StringSubstitutorStringSubstitutor. createInterpolator()Creates a new instance using the interpolator string lookupStringLookupFactory.interpolatorStringLookup().StringSubstitutorStringSubstitutor. setDisableSubstitutionInValues(boolean disableSubstitutionInValues)Sets a flag whether substitution is done in variable values (recursive).StringSubstitutorStringSubstitutor. setEnableSubstitutionInVariables(boolean enableSubstitutionInVariables)Sets a flag whether substitution is done in variable names.StringSubstitutorStringSubstitutor. setEnableUndefinedVariableException(boolean failOnUndefinedVariable)Sets a flag whether exception should be thrown if any variable is undefined.StringSubstitutorStringSubstitutor. setEscapeChar(char escapeCharacter)Sets the escape character.StringSubstitutorStringSubstitutor. setPreserveEscapes(boolean preserveEscapes)Sets a flag controlling whether escapes are preserved during substitution.StringSubstitutorStringSubstitutor. setValueDelimiter(char valueDelimiter)Sets the variable default value delimiter to use.StringSubstitutorStringSubstitutor. setValueDelimiter(String valueDelimiter)Sets the variable default value delimiter to use.StringSubstitutorStringSubstitutor. setValueDelimiterMatcher(StringMatcher valueDelimiterMatcher)Sets the variable default value delimiter matcher to use.StringSubstitutorStringSubstitutor. setVariablePrefix(char prefix)Sets the variable prefix to use.StringSubstitutorStringSubstitutor. setVariablePrefix(String prefix)Sets the variable prefix to use.StringSubstitutorStringSubstitutor. setVariablePrefixMatcher(StringMatcher prefixMatcher)Sets the variable prefix matcher currently in use.StringSubstitutorStringSubstitutor. setVariableResolver(StringLookup variableResolver)Sets the VariableResolver that is used to lookup variables.StringSubstitutorStringSubstitutor. setVariableSuffix(char suffix)Sets the variable suffix to use.StringSubstitutorStringSubstitutor. setVariableSuffix(String suffix)Sets the variable suffix to use.StringSubstitutorStringSubstitutor. setVariableSuffixMatcher(StringMatcher suffixMatcher)Sets the variable suffix matcher currently in use.Constructors in org.apache.commons.text with parameters of type StringSubstitutor Constructor Description StringSubstitutor(StringSubstitutor other)Creates 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 StringSubstitutor Constructor Description StringSubstitutorReader(Reader reader, StringSubstitutor stringSubstitutor)Constructs a new instance.