Deprecated
As of 3.6, use Apache Commons Text NumericEntityUnescaper.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | NumericEntityUnescaper.
Deprecated
As of 3.18.0, use Apache Commons Text
NumericEntityUnescaper.OPTION.
Enumerates NumericEntityUnescaper options for unescaping.
|
| Modifier and Type | Field and Description |
|---|---|
| private final EnumSet |
| Access | Constructor and Description |
|---|---|
| public | NumericEntityUnescaper(final NumericEntityUnescaper.
to apply to this unescaper. options
References Deprecated
NumericEntityUnescaper.OPTION is deprecated or references (maybe indirectly) at least one deprecated element.
Create a UnicodeUnescaper. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: whether the option is set.to check state of. option
References Deprecated
NumericEntityUnescaper.OPTION is deprecated or references (maybe indirectly) at least one deprecated element.
Tests whether the passed in option is currently set. |
| public int | translate(final CharSequence input, final int index, final Writer out)
Implements abstract org. Translate a set of code points, represented by an int index into a CharSequence, into another set of code points. |
| options | back to summary |
|---|---|
| private final EnumSet<NumericEntityUnescaper. | |
| NumericEntityUnescaper | back to summary |
|---|---|
| public NumericEntityUnescaper(final NumericEntityUnescaper. References Deprecated
See corresponding docs for further information. Create a UnicodeUnescaper. The constructor takes a list of options, only one type of which is currently available (whether to allow, error or ignore the semicolon on the end of a numeric entity to being missing). For example, to support numeric entities without a ';': new NumericEntityUnescaper(NumericEntityUnescaper.OPTION.semiColonOptional) and to throw an IllegalArgumentException when they're missing: new NumericEntityUnescaper(NumericEntityUnescaper.OPTION.errorIfNoSemiColon) Note that the default behavior is to ignore them.
| |
| isSet | back to summary |
|---|---|
| public boolean isSet(final NumericEntityUnescaper. References Deprecated
See corresponding docs for further information. Tests whether the passed in option is currently set.
| |
| translate | back to summary |
|---|---|
| public int translate(final CharSequence input, final int index, final Writer out) throws IOException Implements abstract org. Doc from org. Translate a set of code points, represented by an int index into a CharSequence, into another set of code points. The number of code points consumed must be returned, and the only IOExceptions thrown must be from interacting with the Writer so that the top level API may reliably ignore StringWriter IOExceptions.
| |
Deprecated
As of 3.18.0, use Apache Commons Text NumericEntityUnescaper.OPTION.
| Modifier and Type | Field and Description |
|---|---|
| public static final NumericEntityUnescaper. | errorIfNoSemiColon
References Deprecated
Throw an exception if a semicolon is missing.
NumericEntityUnescaper.OPTION is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static final NumericEntityUnescaper. | semiColonOptional
References Deprecated
Do not require a semicolon.
NumericEntityUnescaper.OPTION is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static final NumericEntityUnescaper. | semiColonRequired
References Deprecated
Require a semicolon.
NumericEntityUnescaper.OPTION is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static NumericEntityUnescaper. | valueOf(String name)
References Deprecated
NumericEntityUnescaper.OPTION is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static NumericEntityUnescaper. | values()
References Deprecated
NumericEntityUnescaper.OPTION is deprecated or references (maybe indirectly) at least one deprecated element.
|
| errorIfNoSemiColon | back to summary |
|---|---|
| public static final NumericEntityUnescaper. References Deprecated
See corresponding docs for further information. Throw an exception if a semicolon is missing. | |
| semiColonOptional | back to summary |
|---|---|
| public static final NumericEntityUnescaper. References Deprecated
See corresponding docs for further information. Do not require a semicolon. | |
| semiColonRequired | back to summary |
|---|---|
| public static final NumericEntityUnescaper. References Deprecated
See corresponding docs for further information. Require a semicolon. | |
| OPTION | back to summary |
|---|---|
| private OPTION() | |
| valueOf | back to summary |
|---|---|
| public static NumericEntityUnescaper. References Deprecated
See corresponding docs for further information. | |
| values | back to summary |
|---|---|
| public static NumericEntityUnescaper. References Deprecated
See corresponding docs for further information. | |