Class HTML.HtmlCharacterEntityReferences
- java.lang.Object
-
- org.webpieces.templating.impl.html.HTML.HtmlCharacterEntityReferences
-
- Enclosing class:
- HTML
public static class HTML.HtmlCharacterEntityReferences extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description HtmlCharacterEntityReferences()Returns a new set of character entity references reflecting the HTML 4.0 character set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description charconvertToCharacter(java.lang.String entityReference)Return the char mapped to the given entityReference or -1.java.lang.StringconvertToReference(char character)Return the reference mapped to the given character ornull.intgetSupportedReferenceCount()Return the number of supported entity references.booleanisMappedToReference(char character)Return true if the given character is mapped to a supported entity reference.
-
-
-
Method Detail
-
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.
-
convertToReference
public java.lang.String convertToReference(char character)
Return the reference mapped to the given character ornull.
-
convertToCharacter
public char convertToCharacter(java.lang.String entityReference)
Return the char mapped to the given entityReference or -1.
-
-