Example usage for org.apache.commons.lang3.text StrSubstitutor setEscapeChar

List of usage examples for org.apache.commons.lang3.text StrSubstitutor setEscapeChar

Introduction

In this page you can find the example usage for org.apache.commons.lang3.text StrSubstitutor setEscapeChar.

Prototype

public void setEscapeChar(final char escapeCharacter) 

Source Link

Document

Sets the escape character.

Usage

From source file:com.cybernostics.jsp2thymeleaf.api.util.SimpleStringTemplateProcessor.java

public static StrSubstitutor getSubstitutor(StrLookup<String> variableResolver) {
    StrSubstitutor strSubstitutor = new StrSubstitutor(variableResolver);
    strSubstitutor.setEscapeChar('%');
    strSubstitutor.setVariablePrefix("%{");
    strSubstitutor.setEnableSubstitutionInVariables(false);
    return strSubstitutor;
}