Uses of Class
com.google.common.escape.CharEscaper
-
Packages that use CharEscaper Package Description com.google.common.escape Interfaces, utilities, and simple implementations of escapers and encoders.com.google.common.escape.testing Testing utilities for use in tests ofcom.google.common.escape
. -
-
Uses of CharEscaper in com.google.common.escape
Subclasses of CharEscaper in com.google.common.escape Modifier and Type Class Description class
ArrayBasedCharEscaper
ACharEscaper
that uses an array to quickly look up replacement characters for a givenchar
value.private static class
CharEscaperBuilder.CharArrayDecorator
Simple decorator that turns an array of replacement char[]s into a CharEscaper, this results in a very fast escape method.Methods in com.google.common.escape with parameters of type CharEscaper Modifier and Type Method Description static java.lang.String
Escapers. computeReplacement(CharEscaper escaper, char c)
Returns a string that would replace the given character in the specified escaper, ornull
if no replacement should be made.private static UnicodeEscaper
Escapers. wrap(CharEscaper escaper)
Private helper to wrap a CharEscaper as a UnicodeEscaper. -
Uses of CharEscaper in com.google.common.escape.testing
Methods in com.google.common.escape.testing with parameters of type CharEscaper Modifier and Type Method Description static void
EscaperAsserts. assertEscaping(CharEscaper escaper, java.lang.String expected, char c)
Asserts that an escaper escapes the given character into the expected string.static void
EscaperAsserts. assertUnescaped(CharEscaper escaper, char c)
Asserts that an escaper does not escape the given character.
-