| Modifier and Type | Class and Description |
|---|---|
| public static enum | NumericEntityUnescaper.
Enumerates NumericEntityUnescaper options for unescaping. |
| Modifier and Type | Field and Description |
|---|---|
| private static final EnumSet | DEFAULT_OPTIONS
Default options. |
| private final EnumSet | options
EnumSet of OPTIONS, given from the constructor, read-only. |
| Access | Constructor and Description |
|---|---|
| public | NumericEntityUnescaper(final NumericEntityUnescaper.
to apply to this unescaper optionsCreates a UnicodeUnescaper. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: whether the option is set.to check state of. optionTests whether the passed in option is currently set. |
| public int | translate(final CharSequence input, final int index, final Writer writer)
Implements abstract org. Translate a set of code points, represented by an int index into a CharSequence, into another set of code points. |
| DEFAULT_OPTIONS | back to summary |
|---|---|
| private static final EnumSet<NumericEntityUnescaper. Default options. | |
| options | back to summary |
|---|---|
| private final EnumSet<NumericEntityUnescaper. EnumSet of OPTIONS, given from the constructor, read-only. | |
| NumericEntityUnescaper | back to summary |
|---|---|
| public NumericEntityUnescaper(final NumericEntityUnescaper. Creates 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. Tests whether the passed in option is currently set.
| |
| translate | back to summary |
|---|---|
| public int translate(final CharSequence input, final int index, final Writer writer) 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.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final NumericEntityUnescaper. | errorIfNoSemiColon
Throws an exception if a semicolon is missing. |
| public static final NumericEntityUnescaper. | semiColonOptional
Does not require a semicolon. |
| public static final NumericEntityUnescaper. | semiColonRequired
Requires a semicolon. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static NumericEntityUnescaper. | |
| public static NumericEntityUnescaper. |
| errorIfNoSemiColon | back to summary |
|---|---|
| public static final NumericEntityUnescaper. Throws an exception if a semicolon is missing. | |
| semiColonOptional | back to summary |
|---|---|
| public static final NumericEntityUnescaper. Does not require a semicolon. | |
| semiColonRequired | back to summary |
|---|---|
| public static final NumericEntityUnescaper. Requires a semicolon. | |
| OPTION | back to summary |
|---|---|
| private OPTION() | |
| valueOf | back to summary |
|---|---|
| public static NumericEntityUnescaper. | |
| values | back to summary |
|---|---|
| public static NumericEntityUnescaper. | |