| Modifier and Type | Method and Description |
|---|---|
String |
escape(String value)
Escapes all special like characters (
_, %) using the configured escape character. |
char |
getEscapeCharacter()
Returns the escape character.
|
static Escaper |
of(char escapeCharacter)
Creates new instance of this class with the given escape character.
|
Escaper |
withRewriteFor(String... chars)
Apply the
Escaper to the given chars. |
public static final Escaper DEFAULT
public static Escaper of(char escapeCharacter)
escapeCharacter - escape characterEscaper.IllegalArgumentException - if escape character is one of special characters ('_' and '%')public Escaper withRewriteFor(String... chars)
Escaper to the given chars.chars - characters/char sequences that should be escaped.public char getEscapeCharacter()
Copyright © 2017–2021 Pivotal Software, Inc.. All rights reserved.