Uses of Class
com.google.common.escape.UnicodeEscaper
Packages that use UnicodeEscaper
Package
Description
Interfaces, utilities, and simple implementations of escapers and encoders.
Testing utilities for use in tests of
com.google.common.escape
.This package contains utility methods and classes for working with net addresses (numeric IP and
domain names).
-
Uses of UnicodeEscaper in com.google.common.escape
Subclasses of UnicodeEscaper in com.google.common.escapeModifier and TypeClassDescriptionclass
AUnicodeEscaper
that uses an array to quickly look up replacement characters for a given code point.Methods in com.google.common.escape that return UnicodeEscaperModifier and TypeMethodDescription(package private) static UnicodeEscaper
Escapers.asUnicodeEscaper
(Escaper escaper) Returns aUnicodeEscaper
equivalent to the given escaper instance.private static UnicodeEscaper
Escapers.wrap
(CharEscaper escaper) Private helper to wrap a CharEscaper as a UnicodeEscaper.Methods in com.google.common.escape with parameters of type UnicodeEscaperModifier and TypeMethodDescriptionstatic String
Escapers.computeReplacement
(UnicodeEscaper escaper, int cp) Returns a string that would replace the given character in the specified escaper, ornull
if no replacement should be made. -
Uses of UnicodeEscaper in com.google.common.escape.testing
Methods in com.google.common.escape.testing with parameters of type UnicodeEscaperModifier and TypeMethodDescriptionstatic void
EscaperAsserts.assertEscaping
(UnicodeEscaper escaper, String expected, int cp) Asserts that a Unicode escaper escapes the given code point into the expected string.static void
EscaperAsserts.assertUnescaped
(UnicodeEscaper escaper, int cp) Asserts that a Unicode escaper does not escape the given character.static void
EscaperAsserts.assertUnicodeEscaping
(UnicodeEscaper escaper, String expected, char hi, char lo) Asserts that a Unicode escaper escapes the given hi/lo surrogate pair into the expected string. -
Uses of UnicodeEscaper in com.google.common.net
Subclasses of UnicodeEscaper in com.google.common.netModifier and TypeClassDescriptionfinal class
AUnicodeEscaper
that escapes some set of Java characters using a UTF-8 based percent encoding scheme.