@ParametersAreNonnullByDefault
Package com.google.common.escape
Interfaces, utilities, and simple implementations of escapers and encoders. The primary type is
Escaper
.
Additional escapers implementations are found in the applicable packages: HtmlEscapers
in com.google.common.html
, XmlEscapers
in com.google.common.xml
, and UrlEscapers
in com.google.common.net
.
This package is a part of the open-source Guava libraries.
-
Class Summary Class Description ArrayBasedCharEscaper ACharEscaper
that uses an array to quickly look up replacement characters for a givenchar
value.ArrayBasedEscaperMap An implementation-specific parameter class suitable for initializingArrayBasedCharEscaper
orArrayBasedUnicodeEscaper
instances.ArrayBasedUnicodeEscaper AUnicodeEscaper
that uses an array to quickly look up replacement characters for a given code point.CharEscaper An object that converts literal text into a format safe for inclusion in a particular context (such as an XML document).CharEscaperBuilder Simple helper class to build a "sparse" array of objects based on the indexes that were added to it.Escaper An object that converts literal text into a format safe for inclusion in a particular context (such as an XML document).Escapers Static utility methods pertaining toEscaper
instances.Escapers.Builder A builder for simple, fast escapers.UnicodeEscaper AnEscaper
that converts literal text into a format safe for inclusion in a particular context (such as an XML document).