public class EscapeQuerySyntaxImpl extends Object implements EscapeQuerySyntax
EscapeQuerySyntax.Type| Constructor and Description |
|---|
EscapeQuerySyntaxImpl() |
| Modifier and Type | Method and Description |
|---|---|
static UnescapedCharSequence |
discardEscapeChar(CharSequence input)
Returns a String where the escape char has been removed, or kept only once
if there was a double escape.
|
CharSequence |
escape(CharSequence text,
Locale locale,
EscapeQuerySyntax.Type type) |
public CharSequence escape(CharSequence text, Locale locale, EscapeQuerySyntax.Type type)
escape in interface EscapeQuerySyntaxtext - - text to be escapedlocale - - locale for the current querytype - - select the type of escape operation to usepublic static UnescapedCharSequence discardEscapeChar(CharSequence input) throws ParseException
A to
A.ParseException