Class HTMLEntityLookup


  • public abstract class HTMLEntityLookup
    extends Object
    Author:
    Tom Fennelly
    • Constructor Detail

      • HTMLEntityLookup

        public HTMLEntityLookup()
    • Method Detail

      • getCharacterCode

        public static Character getCharacterCode​(String entityName)
        Get the character code for the given entity reference name.
        Parameters:
        entityName - The entity name for the character code being sought.
        Returns:
        The character code for the entity, or null if it doesn't exist in the table.
      • getEntityRef

        public static String getEntityRef​(char charCode)
        Get the entity reference name for the given character code.
        Parameters:
        charCode - The character code of the entity reference name being sought.
        Returns:
        The entity reference name, or null if it doesn't exist in the table.