Class LegacyHTMLEntityCodec

  • All Implemented Interfaces:
    Codec<java.lang.Character>

    @Deprecated
    public class LegacyHTMLEntityCodec
    extends AbstractCharacterCodec
    Deprecated.
    This class is DEPRECATED. It did not correctly handle encoding of non-BMP unicode code points. This class is provided solely for any fatal bugs not accounted for in the new version and will be removed entirely in a future release. Implementation of the Codec interface for HTML entity encoding.
    Since:
    June 1, 2007
    Author:
    Jeff Williams (jeff.williams .at. aspectsecurity.com) Aspect Security
    See Also:
    Encoder
    • Constructor Detail

      • LegacyHTMLEntityCodec

        public LegacyHTMLEntityCodec()
        Deprecated.
    • Method Detail

      • encodeCharacter

        public java.lang.String encodeCharacter​(char[] immune,
                                                java.lang.Character c)
        Deprecated.
        WARNING!!!! Passing a standard char to this method will resolve to the Encodes a Character for safe use in an HTML entity field.
        Specified by:
        encodeCharacter in interface Codec<java.lang.Character>
        Overrides:
        encodeCharacter in class AbstractCodec<java.lang.Character>
        Parameters:
        immune -
        c - the Character to encode
        Returns:
        the encoded Character
        See Also:
        method instead of this one!!! YOU HAVE BEEN WARNED!!!!
      • decodeCharacter

        public java.lang.Character decodeCharacter​(PushbackString input)
        Deprecated.
        Returns the decoded version of the character starting at index, or null if no decoding is possible. Formats all are legal both with and without semi-colon, upper/lower case: &#dddd; &#xhhhh; &name;