Class DefaultEntityReplacer

  • All Implemented Interfaces:
    EntityReplacer

    public class DefaultEntityReplacer
    extends java.lang.Object
    implements EntityReplacer
    Default implementation of EntityReplacer that knows about the most common HTML entities.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getEntityReferenceValue​(javax.xml.stream.events.EntityReference reference)
      Returns the String representation of the given EntityReference.
      • Methods inherited from class java.lang.Object

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

      • DefaultEntityReplacer

        public DefaultEntityReplacer()
    • Method Detail

      • getEntityReferenceValue

        public java.lang.String getEntityReferenceValue​(javax.xml.stream.events.EntityReference reference)
        Description copied from interface: EntityReplacer
        Returns the String representation of the given EntityReference.
        Specified by:
        getEntityReferenceValue in interface EntityReplacer
        Parameters:
        reference - The EntityReference for which the String representation is requested.
        Returns:
        The String representation for the given EntityReference.