|
|||||||||
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
|
private java.lang.String[] |
characterToEntityReferenceMap
|
(package private) static java.lang.String |
DECIMAL_REFERENCE_START
|
private java.util.Map<java.lang.String,java.lang.Character> |
entityReferenceToCharacterMap
|
(package private) static java.lang.String |
HEX_REFERENCE_START
|
private static java.lang.String |
PROPERTIES_FILE
|
(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(java.lang.String entityReference)
Return the char mapped to the given entityReference or -1. |
java.lang.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 |
---|
private static final java.lang.String PROPERTIES_FILE
static final char REFERENCE_START
static final java.lang.String DECIMAL_REFERENCE_START
static final java.lang.String HEX_REFERENCE_START
static final char REFERENCE_END
static final char CHAR_NULL
private final java.lang.String[] characterToEntityReferenceMap
private final java.util.Map<java.lang.String,java.lang.Character> entityReferenceToCharacterMap
Constructor Detail |
---|
public HtmlCharacterEntityReferences()
Method Detail |
---|
public int getSupportedReferenceCount()
public boolean isMappedToReference(char character)
public java.lang.String convertToReference(char character)
null
.
public char convertToCharacter(java.lang.String entityReference)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |