Uses of Class
com.google.common.escape.Escaper
-
Packages that use Escaper Package Description com.google.common.escape Interfaces, utilities, and simple implementations of escapers and encoders.com.google.common.escape.testing Testing utilities for use in tests ofcom.google.common.escape
.com.google.common.html Escapers for HTML.com.google.common.net This package contains utility methods and classes for working with net addresses (numeric IP and domain names).com.google.common.xml Escapers for XML. -
-
Uses of Escaper in com.google.common.escape
Subclasses of Escaper in com.google.common.escape Modifier and Type Class Description class
ArrayBasedCharEscaper
ACharEscaper
that uses an array to quickly look up replacement characters for a givenchar
value.class
ArrayBasedUnicodeEscaper
AUnicodeEscaper
that uses an array to quickly look up replacement characters for a given code point.class
CharEscaper
An object that converts literal text into a format safe for inclusion in a particular context (such as an XML document).private static class
CharEscaperBuilder.CharArrayDecorator
Simple decorator that turns an array of replacement char[]s into a CharEscaper, this results in a very fast escape method.class
UnicodeEscaper
AnEscaper
that converts literal text into a format safe for inclusion in a particular context (such as an XML document).Fields in com.google.common.escape declared as Escaper Modifier and Type Field Description private static Escaper
Escapers. NULL_ESCAPER
Methods in com.google.common.escape that return Escaper Modifier and Type Method Description Escaper
Escapers.Builder. build()
Returns a new escaper based on the current state of the builder.static Escaper
Escapers. nullEscaper()
Returns anEscaper
that does no escaping, passing all character data through unchanged.Escaper
CharEscaperBuilder. toEscaper()
Convert this builder into a char escaper which is just a decorator around the underlying array of replacement char[]s.Methods in com.google.common.escape with parameters of type Escaper Modifier and Type Method Description (package private) static UnicodeEscaper
Escapers. asUnicodeEscaper(Escaper escaper)
Returns aUnicodeEscaper
equivalent to the given escaper instance. -
Uses of Escaper in com.google.common.escape.testing
Methods in com.google.common.escape.testing with parameters of type Escaper Modifier and Type Method Description static void
EscaperAsserts. assertBasic(Escaper escaper)
Asserts that an escaper behaves correctly with respect to null inputs. -
Uses of Escaper in com.google.common.html
Fields in com.google.common.html declared as Escaper Modifier and Type Field Description private static Escaper
HtmlEscapers. HTML_ESCAPER
Methods in com.google.common.html that return Escaper Modifier and Type Method Description static Escaper
HtmlEscapers. htmlEscaper()
-
Uses of Escaper in com.google.common.net
Subclasses of Escaper in com.google.common.net Modifier and Type Class Description class
PercentEscaper
AUnicodeEscaper
that escapes some set of Java characters using a UTF-8 based percent encoding scheme.Fields in com.google.common.net declared as Escaper Modifier and Type Field Description private static Escaper
UrlEscapers. URL_FORM_PARAMETER_ESCAPER
private static Escaper
UrlEscapers. URL_FRAGMENT_ESCAPER
private static Escaper
UrlEscapers. URL_PATH_SEGMENT_ESCAPER
Methods in com.google.common.net that return Escaper Modifier and Type Method Description static Escaper
UrlEscapers. urlFormParameterEscaper()
Returns anEscaper
instance that escapes strings so they can be safely included in URL form parameter names and values.static Escaper
UrlEscapers. urlFragmentEscaper()
Returns anEscaper
instance that escapes strings so they can be safely included in a URL fragment.static Escaper
UrlEscapers. urlPathSegmentEscaper()
Returns anEscaper
instance that escapes strings so they can be safely included in URL path segments. -
Uses of Escaper in com.google.common.xml
Fields in com.google.common.xml declared as Escaper Modifier and Type Field Description private static Escaper
XmlEscapers. XML_ATTRIBUTE_ESCAPER
private static Escaper
XmlEscapers. XML_CONTENT_ESCAPER
private static Escaper
XmlEscapers. XML_ESCAPER
Methods in com.google.common.xml that return Escaper Modifier and Type Method Description static Escaper
XmlEscapers. xmlAttributeEscaper()
Returns anEscaper
instance that escapes special characters in a string so it can safely be included in XML document as an attribute value.static Escaper
XmlEscapers. xmlContentEscaper()
Returns anEscaper
instance that escapes special characters in a string so it can safely be included in an XML document as element content.
-