public class PercentCodec extends Codec
| 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, toOctalpublic String encodeCharacter(char[] immune, Character c)
encodeCharacter in class Codecimmune - characters not to encodec - character to encodepublic Character decodeCharacter(PushbackString input)
decodeCharacter in class Codecinput - encoded character using percent characters (such as URL encoding)Copyright © 2017. All rights reserved.