Package com.google.common.escape
@CheckReturnValue
@NullMarked
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.
-
ClassDescriptionA
CharEscaper
that uses an array to quickly look up replacement characters for a givenchar
value.An implementation-specific parameter class suitable for initializingArrayBasedCharEscaper
orArrayBasedUnicodeEscaper
instances.AUnicodeEscaper
that uses an array to quickly look up replacement characters for a given code point.An object that converts literal text into a format safe for inclusion in a particular context (such as an XML document).Simple helper class to build a "sparse" array of objects based on the indexes that were added to it.An object that converts literal text into a format safe for inclusion in a particular context (such as an XML document).Static utility methods pertaining toEscaper
instances.A builder for simple, fast escapers.AnEscaper
that converts literal text into a format safe for inclusion in a particular context (such as an XML document).