Uses of Class
com.google.common.escape.Escaper
Package
Description
Interfaces, utilities, and simple implementations of escapers and encoders.
Escapers
for
HTML.
Utility methods and classes for networking (such as IP addresses and domain names).
Escapers
for
XML.
-
Uses of Escaper in com.google.common.escape
Modifier and TypeClassDescriptionclass
ACharEscaper
that uses an array to quickly look up replacement characters for a givenchar
value.class
AUnicodeEscaper
that uses an array to quickly look up replacement characters for a given code point.class
An object that converts literal text into a format safe for inclusion in a particular context (such as an XML document).class
AnEscaper
that converts literal text into a format safe for inclusion in a particular context (such as an XML document).Modifier and TypeMethodDescriptionEscapers.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.CharEscaperBuilder.toEscaper()
Convert this builder into a char escaper which is just a decorator around the underlying array of replacement char[]s. -
Uses of Escaper in com.google.common.html
-
Uses of Escaper in com.google.common.net
Modifier and TypeClassDescriptionfinal class
AUnicodeEscaper
that escapes some set of Java characters using a UTF-8 based percent encoding scheme.Modifier and TypeMethodDescriptionstatic 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
Modifier and TypeMethodDescriptionstatic 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.