Class HtmlCharacterEntities

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,​java.lang.Object>

    public class HtmlCharacterEntities
    extends java.util.Properties
    A collection of all character entites defined in the HTML4 standard. The key is the entity name, the property value is the decoded string.
    Author:
    Thomas Morgner
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static CharacterEntityParser getEntityParser()
      Gets the character entity parser for HTML content.
      • Methods inherited from class java.util.Properties

        clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • HtmlCharacterEntities

        public HtmlCharacterEntities()
        Creates an instance.
    • Method Detail

      • getEntityParser

        public static CharacterEntityParser getEntityParser()
        Gets the character entity parser for HTML content. The CharacterEntity parser translates known characters into predefined entities.
        Returns:
        the character entity parser instance.