public class PercentCodec extends Codec
Encoder
Constructor and Description |
---|
PercentCodec() |
Modifier and Type | Method and Description |
---|---|
Character |
decodeCharacter(PushbackString input)
Returns the decoded version of the next character from the input string and advances the
current character in the PushbackString.
|
String |
encodeCharacter(char[] immune,
Character c)
Encode a character for URLs
|
containsCharacter, decode, encode, getHexForNonAlphanumeric, toHex, toOctal
public String encodeCharacter(char[] immune, Character c)
encodeCharacter
in class Codec
immune
- characters not to encodec
- character to encodepublic Character decodeCharacter(PushbackString input)
decodeCharacter
in class Codec
input
- encoded character using percent characters (such as URL encoding)Copyright © 2013 The Open Web Application Security Project (OWASP). All rights reserved.