Uses of Class
com.google.common.escape.Escaper
Packages that use Escaper
Package
Description
Interfaces, utilities, and simple implementations of escapers and encoders.
Testing utilities for use in tests of
com.google.common.escape.Escapers
for
HTML.
This package contains utility methods and classes for working with net addresses (numeric IP and
domain names).
Escapers
for
XML.
-
Uses of Escaper in com.google.common.escape
Subclasses of Escaper in com.google.common.escapeModifier and TypeClassDescriptionclassACharEscaperthat uses an array to quickly look up replacement characters for a givencharvalue.classAUnicodeEscaperthat uses an array to quickly look up replacement characters for a given code point.classAn object that converts literal text into a format safe for inclusion in a particular context (such as an XML document).private static classSimple decorator that turns an array of replacement char[]s into a CharEscaper, this results in a very fast escape method.classAnEscaperthat 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 EscaperMethods in com.google.common.escape that return EscaperModifier and TypeMethodDescriptionEscapers.Builder.build()Returns a new escaper based on the current state of the builder.static EscaperEscapers.nullEscaper()Returns anEscaperthat 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.Methods in com.google.common.escape with parameters of type EscaperModifier and TypeMethodDescription(package private) static UnicodeEscaperEscapers.asUnicodeEscaper(Escaper escaper) Returns aUnicodeEscaperequivalent 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 EscaperModifier and TypeMethodDescriptionstatic voidEscaperAsserts.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 EscaperMethods in com.google.common.html that return Escaper -
Uses of Escaper in com.google.common.net
Subclasses of Escaper in com.google.common.netModifier and TypeClassDescriptionfinal classAUnicodeEscaperthat escapes some set of Java characters using a UTF-8 based percent encoding scheme.Fields in com.google.common.net declared as EscaperModifier and TypeFieldDescriptionprivate static final EscaperUrlEscapers.URL_FORM_PARAMETER_ESCAPERprivate static final EscaperUrlEscapers.URL_FRAGMENT_ESCAPERprivate static final EscaperUrlEscapers.URL_PATH_SEGMENT_ESCAPERMethods in com.google.common.net that return EscaperModifier and TypeMethodDescriptionstatic EscaperUrlEscapers.urlFormParameterEscaper()Returns anEscaperinstance that escapes strings so they can be safely included in URL form parameter names and values.static EscaperUrlEscapers.urlFragmentEscaper()Returns anEscaperinstance that escapes strings so they can be safely included in a URL fragment.static EscaperUrlEscapers.urlPathSegmentEscaper()Returns anEscaperinstance 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 EscaperModifier and TypeFieldDescriptionprivate static final EscaperXmlEscapers.XML_ATTRIBUTE_ESCAPERprivate static final EscaperXmlEscapers.XML_CONTENT_ESCAPERprivate static final EscaperXmlEscapers.XML_ESCAPERMethods in com.google.common.xml that return EscaperModifier and TypeMethodDescriptionstatic EscaperXmlEscapers.xmlAttributeEscaper()Returns anEscaperinstance that escapes special characters in a string so it can safely be included in XML document as an attribute value.static EscaperXmlEscapers.xmlContentEscaper()Returns anEscaperinstance that escapes special characters in a string so it can safely be included in an XML document as element content.