Class NumericCharacterReference

java.lang.Object
Segment
CharacterReference
NumericCharacterReference
All Implemented Interfaces:
CharSequence, Comparable<Segment>

public class NumericCharacterReference extends CharacterReference
Represents an HTML Numeric Character Reference.

A numeric character reference can be one of two types:

Decimal Character Reference
A numeric character reference specifying the unicode code point in decimal notation.
This is signified by the absence of an 'x' character after the '#', (eg "&#62;").
Hexadecimal Character Reference
A numeric character reference specifying the unicode code point in hexadecimal notation.
This is signified by the presence of an 'x' character after the '#', (eg "&#x3e;").

Static methods to encode and decode strings and single characters can be found in the CharacterReference superclass.

NumericCharacterReference instances are obtained using one of the following methods:

See Also: