|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.web.util.HtmlCharacterEntityReferences
class HtmlCharacterEntityReferences
Represents a set of character entity references defined by the HTML 4.0 standard.
A complete description of the HTML 4.0 character set can be found at http://www.w3.org/TR/html4/charset.html.
Field Summary | |
---|---|
(package private) static char |
CHAR_NULL
|
(package private) static String |
DECIMAL_REFERENCE_START
|
(package private) static String |
HEX_REFERENCE_START
|
(package private) static char |
REFERENCE_END
|
(package private) static char |
REFERENCE_START
|
Constructor Summary | |
---|---|
HtmlCharacterEntityReferences()
Returns a new set of character entity references reflecting the HTML 4.0 character set. |
Method Summary | |
---|---|
char |
convertToCharacter(String entityReference)
Return the char mapped to the given entityReference or -1. |
String |
convertToReference(char character)
Return the reference mapped to the given character or null . |
int |
getSupportedReferenceCount()
Return the number of supported entity references. |
boolean |
isMappedToReference(char character)
Return true if the given character is mapped to a supported entity reference. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final char REFERENCE_START
static final String DECIMAL_REFERENCE_START
static final String HEX_REFERENCE_START
static final char REFERENCE_END
static final char CHAR_NULL
Constructor Detail |
---|
public HtmlCharacterEntityReferences()
Method Detail |
---|
public int getSupportedReferenceCount()
public boolean isMappedToReference(char character)
public String convertToReference(char character)
null
.
public char convertToCharacter(String entityReference)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |