|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.owasp.esapi.codecs.Codec org.owasp.esapi.codecs.WindowsCodec
public class WindowsCodec
Implementation of the Codec interface for '^' encoding from Windows command shell.
Encoder
Constructor Summary | |
---|---|
WindowsCodec()
|
Method Summary | |
---|---|
java.lang.Character |
decodeCharacter(PushbackString input)
Returns the decoded version of the next character from the input string and advances the current character in the PushbackString. |
java.lang.String |
encodeCharacter(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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WindowsCodec()
Method Detail |
---|
public java.lang.String encodeCharacter(char[] immune, java.lang.Character c)
encodeCharacter
in class Codec
immune
- c
- the Character to encode
public java.lang.Character decodeCharacter(PushbackString input)
Formats all are legal both upper/lower case: ^x - all special characters
decodeCharacter
in class Codec
input
- the Character to decode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |