Package org.owasp.esapi.codecs
Class LegacyHTMLEntityCodec
- java.lang.Object
-
- org.owasp.esapi.codecs.AbstractCodec<java.lang.Character>
-
- org.owasp.esapi.codecs.AbstractCharacterCodec
-
- org.owasp.esapi.codecs.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 Summary
Constructors Constructor Description LegacyHTMLEntityCodec()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Character
decodeCharacter(PushbackString input)
Deprecated.Returns the decoded version of the character starting at index, or null if no decoding is possible.java.lang.String
encodeCharacter(char[] immune, java.lang.Character c)
Deprecated.WARNING!!!! Passing a standard char to this method will resolve to the-
Methods inherited from class org.owasp.esapi.codecs.AbstractCharacterCodec
decode
-
Methods inherited from class org.owasp.esapi.codecs.AbstractCodec
containsCharacter, decodeCharacter, encode, encodeCharacter, encodeCharacter, getHexForNonAlphanumeric, getHexForNonAlphanumeric, toHex, toHex, toOctal
-
-
-
-
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 interfaceCodec<java.lang.Character>
- Overrides:
encodeCharacter
in classAbstractCodec<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; hhhh; &name;
-
-