Class EntitiesToUnicode


  • public class EntitiesToUnicode
    extends java.lang.Object
    This class contains entities that can be used in an entity tag.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static char decodeEntity​(java.lang.String name)
      Translates an entity to a unicode character.
      static java.lang.String decodeString​(java.lang.String s)
      Translates a String with entities (&...;) to a String without entities, replacing the entity with the right (unicode) character.
      • Methods inherited from class java.lang.Object

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

      • EntitiesToUnicode

        public EntitiesToUnicode()
    • Method Detail

      • decodeEntity

        public static char decodeEntity​(java.lang.String name)
        Translates an entity to a unicode character.
        Parameters:
        name - the name of the entity
        Returns:
        the corresponding unicode character
      • decodeString

        public static java.lang.String decodeString​(java.lang.String s)
        Translates a String with entities (&...;) to a String without entities, replacing the entity with the right (unicode) character.