EntityArrays¶
- @Deprecated public class org.apache.commons.lang3.text.translate.EntityArrays[source]¶
Deprecated: As of 3.6, use Apache Commons Text EntityArrays.
Class holding various entity data for HTML and XML - generally for use with the LookupTranslator. All arrays are of length [*][2].
- Since:
3.0
Constructors¶
Deprecated. Constructs a new instance. |
- @Deprecated public EntityArrays()[source]¶
Deprecated: Will be removed in 4.0.0.
Constructs a new instance.
Methods¶
Mapping to escape the apostrophe character to its XML character entity. |
|
Reverse of |
|
Mapping to escape the basic XML and HTML character entities. |
|
Reverse of |
|
Mapping to escape additional character entity references. |
|
Reverse of |
|
Mapping to escape ISO-8859-1 characters to their named HTML 3.x equivalents. |
|
Reverse of |
|
Mapping to escape the Java control characters. |
|
Reverse of |
|
Used to invert an escape array into an unescape array. |
- public static String[][] APOS_ESCAPE()[source]¶
Mapping to escape the apostrophe character to its XML character entity.
- Returns:
The mapping table.
- public static String[][] APOS_UNESCAPE()[source]¶
Reverse of
#APOS_ESCAPE()for unescaping purposes.- Returns:
The mapping table.
- public static String[][] BASIC_ESCAPE()[source]¶
Mapping to escape the basic XML and HTML character entities.
Namely:
" ' & < >. The apostrophe is escaped as the numeric reference'.- Returns:
The mapping table.
- public static String[][] BASIC_UNESCAPE()[source]¶
Reverse of
#BASIC_ESCAPE()for unescaping purposes.- Returns:
The mapping table.
- public static String[][] HTML40_EXTENDED_ESCAPE()[source]¶
Mapping to escape additional character entity references. Note that this must be used with
#ISO8859_1_ESCAPE()to get the full list of HTML 4.0 character entities.- Returns:
The mapping table.
- public static String[][] HTML40_EXTENDED_UNESCAPE()[source]¶
Reverse of
#HTML40_EXTENDED_ESCAPE()for unescaping purposes.- Returns:
The mapping table.
- public static String[][] ISO8859_1_ESCAPE()[source]¶
Mapping to escape ISO-8859-1 characters to their named HTML 3.x equivalents.
- Returns:
The mapping table.
- public static String[][] ISO8859_1_UNESCAPE()[source]¶
Reverse of
#ISO8859_1_ESCAPE()for unescaping purposes.- Returns:
The mapping table.
- public static String[][] JAVA_CTRL_CHARS_ESCAPE()[source]¶
Mapping to escape the Java control characters.
Namely:
\b \n \t \f \r- Returns:
The mapping table.
- public static String[][] JAVA_CTRL_CHARS_UNESCAPE()[source]¶
Reverse of
#JAVA_CTRL_CHARS_ESCAPE()for unescaping purposes.- Returns:
The mapping table.