@Deprecated public class LegacyHTMLEntityCodec extends AbstractCharacterCodec
Encoder
Constructor and Description |
---|
LegacyHTMLEntityCodec()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Character |
decodeCharacter(PushbackString input)
Deprecated.
Returns the decoded version of the character starting at index, or
null if no decoding is possible.
|
String |
encodeCharacter(char[] immune,
Character c)
Deprecated.
Default implementation that should be overridden in specific codecs.
|
decode
containsCharacter, decodeCharacter, encode, encodeCharacter, encodeCharacter, getHexForNonAlphanumeric, getHexForNonAlphanumeric, toHex, toHex, toOctal
public String encodeCharacter(char[] immune, Character c)
WARNING!!!! Passing a standard char
rather than Character
to this method will resolve to the
AbstractCodec.encodeCharacter( char[], char )
method, which will throw an IllegalArgumentException
instead.
YOU HAVE BEEN WARNED!!!!
Encodes a Character for safe use in an HTML entity field.
encodeCharacter
in interface Codec<Character>
encodeCharacter
in class AbstractCodec<Character>
immune
- c
- the Character to encodepublic Character decodeCharacter(PushbackString input)
Copyright © 2023 The Open Web Application Security Project (OWASP). All rights reserved.