@CheckReturnValue @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 library.
-
Class Summary Class Description ArrayBasedCharEscaper ACharEscaperthat uses an array to quickly look up replacement characters for a givencharvalue.ArrayBasedEscaperMap An implementation-specific parameter class suitable for initializingArrayBasedCharEscaperorArrayBasedUnicodeEscaperinstances.ArrayBasedUnicodeEscaper AUnicodeEscaperthat 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 toEscaperinstances.Escapers.Builder A builder for simple, fast escapers.UnicodeEscaper AnEscaperthat converts literal text into a format safe for inclusion in a particular context (such as an XML document).