类 HtmlCharacterEntityReferences
java.lang.Object
cn.taketoday.web.util.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 https://www.w3.org/TR/html4/charset.html.
- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller, Martin Kersten, Craig Andrews
-
字段概要
字段 -
构造器概要
构造器构造器说明Returns a new set of character entity references reflecting the HTML 4.0 character set. -
方法概要
修饰符和类型方法说明charconvertToCharacter(String entityReference) Return the char mapped to the given entityReference or -1.convertToReference(char character) Return the reference mapped to the given character, ornullif none found.convertToReference(char character, String encoding) Return the reference mapped to the given character, ornullif none found.intReturn the number of supported entity references.booleanisMappedToReference(char character) Return true if the given character is mapped to a supported entity reference.booleanisMappedToReference(char character, String encoding) Return true if the given character is mapped to a supported entity reference.
-
字段详细资料
-
PROPERTIES_FILE
- 另请参阅:
-
REFERENCE_START
static final char REFERENCE_START- 另请参阅:
-
DECIMAL_REFERENCE_START
- 另请参阅:
-
HEX_REFERENCE_START
- 另请参阅:
-
REFERENCE_END
static final char REFERENCE_END- 另请参阅:
-
CHAR_NULL
static final char CHAR_NULL- 另请参阅:
-
characterToEntityReferenceMap
-
entityReferenceToCharacterMap
-
-
构造器详细资料
-
HtmlCharacterEntityReferences
public HtmlCharacterEntityReferences()Returns a new set of character entity references reflecting the HTML 4.0 character set.
-
-
方法详细资料
-
getSupportedReferenceCount
public int getSupportedReferenceCount()Return the number of supported entity references. -
isMappedToReference
public boolean isMappedToReference(char character) Return true if the given character is mapped to a supported entity reference. -
isMappedToReference
Return true if the given character is mapped to a supported entity reference. -
convertToReference
Return the reference mapped to the given character, ornullif none found. -
convertToReference
Return the reference mapped to the given character, ornullif none found. -
convertToCharacter
Return the char mapped to the given entityReference or -1.
-