On this page

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

EntityArrays()

Deprecated. Constructs a new instance.

@Deprecated public EntityArrays()[source]

Deprecated: Will be removed in 4.0.0.

Constructs a new instance.

Methods

APOS_ESCAPE()

Mapping to escape the apostrophe character to its XML character entity.

APOS_UNESCAPE()

Reverse of #APOS_ESCAPE() for unescaping purposes.

BASIC_ESCAPE()

Mapping to escape the basic XML and HTML character entities.

BASIC_UNESCAPE()

Reverse of #BASIC_ESCAPE() for unescaping purposes.

HTML40_EXTENDED_ESCAPE()

Mapping to escape additional character entity references.

HTML40_EXTENDED_UNESCAPE()

Reverse of #HTML40_EXTENDED_ESCAPE() for unescaping purposes.

ISO8859_1_ESCAPE()

Mapping to escape ISO-8859-1 characters to their named HTML 3.x equivalents.

ISO8859_1_UNESCAPE()

Reverse of #ISO8859_1_ESCAPE() for unescaping purposes.

JAVA_CTRL_CHARS_ESCAPE()

Mapping to escape the Java control characters.

JAVA_CTRL_CHARS_UNESCAPE()

Reverse of #JAVA_CTRL_CHARS_ESCAPE() for unescaping purposes.

invert(String[][])

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 &#39;.

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.

public static String[][] invert(String[][] array)[source]

Used to invert an escape array into an unescape array.

Parameters:

array – String[][] to be inverted.

Returns:

String[][] inverted array.