Package org.owasp.esapi.codecs
Class DB2Codec
- java.lang.Object
-
- org.owasp.esapi.codecs.Codec
-
- org.owasp.esapi.codecs.DB2Codec
-
-
Constructor Summary
Constructors Constructor Description DB2Codec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.CharacterdecodeCharacter(PushbackString input)Returns the decoded version of the next character from the input string and advances the current character in the PushbackString.java.lang.StringencodeCharacter(char[] immune, java.lang.Character c)Default implementation that should be overridden in specific codecs.-
Methods inherited from class org.owasp.esapi.codecs.Codec
containsCharacter, decode, encode, getHexForNonAlphanumeric, toHex, toOctal
-
-
-
-
Method Detail
-
encodeCharacter
public java.lang.String encodeCharacter(char[] immune, java.lang.Character c)Description copied from class:CodecDefault implementation that should be overridden in specific codecs.- Overrides:
encodeCharacterin classCodecc- the Character to encode- Returns:
- the encoded Character
-
decodeCharacter
public java.lang.Character decodeCharacter(PushbackString input)
Description copied from class:CodecReturns the decoded version of the next character from the input string and advances the current character in the PushbackString. If the current character is not encoded, this method MUST reset the PushbackString.- Overrides:
decodeCharacterin classCodec- Parameters:
input- the Character to decode- Returns:
- the decoded Character
-
-