Class HTMLEntities


  • public class HTMLEntities
    extends java.lang.Object
    Pre-defined HTML entities.
    Version:
    $Id: HTMLEntities.java,v 1.5 2005/02/14 03:56:54 andyc Exp $
    Author:
    Andy Clark
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.util.Map ENTITIES
      Entities.
      protected static org.cyberneko.html.HTMLEntities.IntProperties SEITITNE
      Reverse mapping from characters to names.
    • Constructor Summary

      Constructors 
      Constructor Description
      HTMLEntities()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String get​(int c)
      Returns the name associated to the given character or null if the character is not known.
      static int get​(java.lang.String name)
      Returns the character associated to the given entity name, or -1 if the name is not known.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ENTITIES

        protected static final java.util.Map ENTITIES
        Entities.
      • SEITITNE

        protected static final org.cyberneko.html.HTMLEntities.IntProperties SEITITNE
        Reverse mapping from characters to names.
    • Constructor Detail

      • HTMLEntities

        public HTMLEntities()
    • Method Detail

      • get

        public static int get​(java.lang.String name)
        Returns the character associated to the given entity name, or -1 if the name is not known.
      • get

        public static java.lang.String get​(int c)
        Returns the name associated to the given character or null if the character is not known.