Package org.apache.commons.text.translate
An API for creating text translation routines from a set of smaller building blocks. Initially created to make it possible for the user to customize the rules in the StringEscapeUtils class.
These classes are immutable, and therefore thread-safe.
- Since:
- 1.0
-
Class Summary Class Description AggregateTranslator Executes a sequence of translators one after the other.CharSequenceTranslator An API for translating text.CodePointTranslator Helper subclass to CharSequenceTranslator to allow for translations that will replace up to one character at a time.CsvTranslators This class holds inner classes for escaping/unescaping Comma Separated Values.CsvTranslators.CsvEscaper Translator for escaping Comma Separated Values.CsvTranslators.CsvUnescaper Translator for unescaping escaped Comma Separated Value entries.EntityArrays Class holding various entity data for HTML and XML - generally for use with the LookupTranslator.JavaUnicodeEscaper Translates codepoints to their Unicode escaped value suitable for Java source.LookupTranslator Translates a value using a lookup table.NumericEntityEscaper Translates codepoints to their XML numeric entity escaped value.NumericEntityUnescaper Translate XML numeric entities of the form &#[xX]?\d+;? to the specific codepoint.OctalUnescaper Translate escaped octal Strings back to their octal values.UnicodeEscaper Translates codepoints to their Unicode escaped value.UnicodeUnescaper Translates escaped Unicode values of the form \\u+\d\d\d\d back to Unicode.UnicodeUnpairedSurrogateRemover Helper subclass to CharSequenceTranslator to remove unpaired surrogates. -
Enum Summary Enum Description NumericEntityUnescaper.OPTION NumericEntityUnescaper option enum.