| 程序包 | 说明 |
|---|---|
| com.jn.langx.text.html | |
| com.jn.langx.text.xml | |
| com.jn.langx.util.escape | |
| com.jn.langx.util.net.escaper |
| 限定符和类型 | 方法和说明 |
|---|---|
static Escaper |
HtmlEscapers.htmlEscaper()
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Escaper |
XmlEscapers.xmlAttributeEscaper()
Returns an
Escaper 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 an
Escaper instance that escapes special characters in a string so it can
safely be included in an XML document as element content. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ArrayBasedCharEscaper
A
CharEscaper that uses an array to quickly look up replacement characters for a given
char value. |
class |
ArrayBasedUnicodeEscaper
A
UnicodeEscaper 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).
|
class |
UnicodeEscaper
An
Escaper that converts literal text into a format safe for inclusion in a particular
context (such as an XML document). |
| 限定符和类型 | 方法和说明 |
|---|---|
Escaper |
Escapers.Builder.build()
Returns a new escaper based on the current state of the builder.
|
static Escaper |
Escapers.nullEscaper()
Returns an
Escaper 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.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
PercentEscaper
A
UnicodeEscaper that escapes some set of Java characters using a UTF-8 based percent
encoding scheme. |
| 限定符和类型 | 方法和说明 |
|---|---|
static Escaper |
UrlEscapers.urlFormParameterEscaper()
Returns an
Escaper instance that escapes strings so they can be safely included in URL form parameter names and values. |
static Escaper |
UrlEscapers.urlFragmentEscaper()
Returns an
Escaper instance that escapes strings so they can be safely included in a URL fragment. |
static Escaper |
UrlEscapers.urlPathSegmentEscaper()
Returns an
Escaper instance that escapes strings so they can be safely included in URL path segments. |
Copyright © 2021. All rights reserved.