Package | Description |
---|---|
org.apache.commons.text |
Basic classes for text handling.
|
org.apache.commons.text.translate |
An API for creating text translation routines from a set of smaller building blocks.
|
Modifier and Type | Field and Description |
---|---|
static CharSequenceTranslator |
StringEscapeUtils.ESCAPE_CSV
Translator object for escaping individual Comma Separated Values.
|
static CharSequenceTranslator |
StringEscapeUtils.ESCAPE_ECMASCRIPT
Translator object for escaping EcmaScript/JavaScript.
|
static CharSequenceTranslator |
StringEscapeUtils.ESCAPE_HTML3
Translator object for escaping HTML version 3.0.
|
static CharSequenceTranslator |
StringEscapeUtils.ESCAPE_HTML3_ONCE
The improved translator object for escaping HTML version 3.0.
|
static CharSequenceTranslator |
StringEscapeUtils.ESCAPE_HTML4
Translator object for escaping HTML version 4.0.
|
static CharSequenceTranslator |
StringEscapeUtils.ESCAPE_HTML4_ONCE
The improved translator object for escaping HTML version 4.0.
|
static CharSequenceTranslator |
StringEscapeUtils.ESCAPE_JAVA
Translator object for escaping Java.
|
static CharSequenceTranslator |
StringEscapeUtils.ESCAPE_JSON
Translator object for escaping Json.
|
static CharSequenceTranslator |
StringEscapeUtils.ESCAPE_XML10
Translator object for escaping XML 1.0.
|
static CharSequenceTranslator |
StringEscapeUtils.ESCAPE_XML11
Translator object for escaping XML 1.1.
|
static CharSequenceTranslator |
StringEscapeUtils.ESCAPE_XSI
Translator object for escaping Shell command language.
|
static CharSequenceTranslator |
StringEscapeUtils.UNESCAPE_CSV
Translator object for unescaping escaped Comma Separated Value entries.
|
static CharSequenceTranslator |
StringEscapeUtils.UNESCAPE_ECMASCRIPT
Translator object for unescaping escaped EcmaScript.
|
static CharSequenceTranslator |
StringEscapeUtils.UNESCAPE_HTML3
Translator object for unescaping escaped HTML 3.0.
|
static CharSequenceTranslator |
StringEscapeUtils.UNESCAPE_HTML4
Translator object for unescaping escaped HTML 4.0.
|
static CharSequenceTranslator |
StringEscapeUtils.UNESCAPE_JAVA
Translator object for unescaping escaped Java.
|
static CharSequenceTranslator |
StringEscapeUtils.UNESCAPE_JSON
Translator object for unescaping escaped Json.
|
static CharSequenceTranslator |
StringEscapeUtils.UNESCAPE_XML
Translator object for unescaping escaped XML.
|
static CharSequenceTranslator |
StringEscapeUtils.UNESCAPE_XSI |
Modifier and Type | Method and Description |
---|---|
static StringEscapeUtils.Builder |
StringEscapeUtils.builder(CharSequenceTranslator translator)
Get a
StringEscapeUtils.Builder . |
Modifier and Type | Class and Description |
---|---|
class |
AggregateTranslator
Executes a sequence of translators one after the other.
|
class |
CodePointTranslator
Helper subclass to CharSequenceTranslator to allow for translations that
will replace up to one character at a time.
|
class |
JavaUnicodeEscaper
Translates codepoints to their Unicode escaped value suitable for Java source.
|
class |
LookupTranslator
Translates a value using a lookup table.
|
class |
NumericEntityEscaper
Translates codepoints to their XML numeric entity escaped value.
|
class |
NumericEntityUnescaper
Translate XML numeric entities of the form &#[xX]?\d+;? to
the specific codepoint.
|
class |
OctalUnescaper
Translate escaped octal Strings back to their octal values.
|
class |
SingleLookupTranslator
Translates a value using a lookup table.
|
class |
UnicodeEscaper
Translates codepoints to their Unicode escaped value.
|
class |
UnicodeUnescaper
Translates escaped Unicode values of the form \\u+\d\d\d\d back to
Unicode.
|
class |
UnicodeUnpairedSurrogateRemover
Helper subclass to CharSequenceTranslator to remove unpaired surrogates.
|
Modifier and Type | Method and Description |
---|---|
CharSequenceTranslator |
CharSequenceTranslator.with(CharSequenceTranslator... translators)
Helper method to create a merger of this translator with another set of
translators.
|
Modifier and Type | Method and Description |
---|---|
CharSequenceTranslator |
CharSequenceTranslator.with(CharSequenceTranslator... translators)
Helper method to create a merger of this translator with another set of
translators.
|
Constructor and Description |
---|
AggregateTranslator(CharSequenceTranslator... translators)
Specify the translators to be used at creation time.
|
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.