Top Description Annotations Classes
[default module]

Package com.google.common.escape

Annotations
@CheckReturnValue
@ParametersAreNonnullByDefault
Imports
com.google.errorprone.annotations.CheckReturnValue, javax.annotation.ParametersAreNonnullByDefault

Interfaces, utilities, and simple implementations of escapers and encoders. The primary type is Escaper.

Additional escapers implementations are found in the applicable packages: com.google.common.html.HtmlEscapers in com.google.common.html, com.google.common.xml.XmlEscapers in com.google.common.xml, and com.google.common.net.UrlEscapers in com.google.common.net.

This package is a part of the open-source Guava library.

Annotation Summary

Modifier and TypeAnnotation and Description
pack-priv @interface
ElementTypesAreNonnullByDefault

Marks all "top-level" types as non-null in a way that is recognized by Kotlin.

pack-priv @interface
ParametricNullness

Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class.

Class Summary

Modifier and TypeClass and Description
public abstract class
ArrayBasedCharEscaper

A CharEscaper that uses an array to quickly look up replacement characters for a given char value.

public class
ArrayBasedEscaperMap

An implementation-specific parameter class suitable for initializing ArrayBasedCharEscaper or ArrayBasedUnicodeEscaper instances.

public abstract class
ArrayBasedUnicodeEscaper

A UnicodeEscaper that uses an array to quickly look up replacement characters for a given code point.

public abstract class
CharEscaper

An object that converts literal text into a format safe for inclusion in a particular context (such as an XML document).

public class
CharEscaperBuilder

Simple helper class to build a "sparse" array of objects based on the indexes that were added to it.

public abstract class
Escaper

An object that converts literal text into a format safe for inclusion in a particular context (such as an XML document).

public class
Escapers

Static utility methods pertaining to Escaper instances.

pack-priv class
Platform

Methods factored out so that they can be emulated differently in GWT.

public abstract class
UnicodeEscaper

An Escaper that converts literal text into a format safe for inclusion in a particular context (such as an XML document).