Class NamedEntitiesDereferencer


  • public class NamedEntitiesDereferencer
    extends java.lang.Object
    NamedEntitiesDereferencer provides an extremely fast way to map Named Entities References to their corresponding Unicode value.

    Note: the Entity table described below comes from the official XHTML entity reference list.  Also, notice that entity names are case sensitive.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static char toCode​(byte[] b, int offset, int count)
      Get the code associated to a key.
      • Methods inherited from class java.lang.Object

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

      • NamedEntitiesDereferencer

        public NamedEntitiesDereferencer()
    • Method Detail

      • toCode

        public static char toCode​(byte[] b,
                                  int offset,
                                  int count)
        Get the code associated to a key.
        Parameters:
        b - byte array containing the key
        offset - position of the first byte of the key in the array
        count - number of bytes composing the key
        Returns:
        the corresponding character value, or 0 if invalid