|
||||||||||
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.MySQLCodec
public class MySQLCodec
Implementation of the Codec interface for MySQL strings. See http://mirror.yandex.ru/mirrors/ftp.mysql.com/doc/refman/5.0/en/string-syntax.html for more information.
Encoder
Nested Class Summary | |
---|---|
static class |
MySQLCodec.Mode
Specifies the SQL Mode the target MySQL Server is running with. |
Field Summary | |
---|---|
static int |
ANSI_MODE
Target MySQL Server is running in ANSI Mode |
static int |
MYSQL_MODE
Target MySQL Server is running in Standard MySQL (Default) mode. |
Constructor Summary | |
---|---|
MySQLCodec(int mode)
Deprecated. |
|
MySQLCodec(MySQLCodec.Mode mode)
Instantiate the MySQL Codec with the given SQL MySQLCodec.Mode . |
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 |
Field Detail |
---|
public static final int MYSQL_MODE
public static final int ANSI_MODE
ANSI Mode
Constructor Detail |
---|
public MySQLCodec(int mode)
mode
- Mode has to be one of {MYSQL_MODE|ANSI_MODE} to allow correct encodingMySQLCodec(org.owasp.esapi.codecs.MySQLCodec.Mode)
public MySQLCodec(MySQLCodec.Mode mode)
MySQLCodec.Mode
.
mode
- The mode the target server is running inMethod 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)
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 |