Package com.google.common.escape


@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
    Description
    A CharEscaper that uses an array to quickly look up replacement characters for a given char value.
    An implementation-specific parameter class suitable for initializing ArrayBasedCharEscaper or ArrayBasedUnicodeEscaper instances.
    A UnicodeEscaper 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.
    Simple decorator that turns an array of replacement char[]s into a CharEscaper, this results in a very fast escape method.
    Marks all "top-level" types as non-null in a way that is recognized by Kotlin.
    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 to Escaper instances.
    A builder for simple, fast escapers.
    Marks a "top-level" type-variable usage as (a) a Kotlin platform type when the type argument is non-nullable and (b) nullable when the type argument is nullable.
    Methods factored out so that they can be emulated differently in GWT.
    An Escaper that converts literal text into a format safe for inclusion in a particular context (such as an XML document).