public class MySQLCodec extends AbstractCharacterCodec
| 限定符和类型 | 类和说明 |
|---|---|
static class |
MySQLCodec.Mode
Specifies the SQL Mode the target MySQL Server is running with.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
ANSI_MODE
Target MySQL Server is running in ANSI_QUOTES Mode
|
static int |
MYSQL_MODE
Target MySQL Server is running in Standard MySQL (Default) mode.
|
| 构造器和说明 |
|---|
MySQLCodec() |
MySQLCodec(int mode)
已过时。
|
MySQLCodec(MySQLCodec.Mode mode)
Instantiate the MySQL Codec with the given SQL
MySQLCodec.Mode. |
| 限定符和类型 | 方法和说明 |
|---|---|
Character |
decodeCharacter(PushbackSequence<Character> input)
Returns the decoded version of the next character from the input string and
advances the current character in the PushbackSequence.
|
String |
encodeCharacter(char[] immune,
Character c)
WARNING!!!!
|
decodecontainsCharacter, encode, encodeCharacter, encodeCharacter, getHexForNonAlphanumeric, getHexForNonAlphanumeric, toHex, toHex, toOctalpublic static final int MYSQL_MODE
public static final int ANSI_MODE
public MySQLCodec()
@Deprecated public MySQLCodec(int mode)
mode - Mode has to be one of {MYSQL_MODE|ANSI_MODE} to allow correct
encoding#MySQLCodec(org.owasp.esapi.codecs.MySQLCodec.Mode)public MySQLCodec(MySQLCodec.Mode mode)
MySQLCodec.Mode.mode - The mode the target server is running inpublic String encodeCharacter(char[] immune, Character c)
encodeCharacter 在接口中 Codec<Character>encodeCharacter 在类中 AbstractCodec<Character>immune - array of chars to NOT encode. Use with caution.c - the Character to encodemethod instead of this one!!! YOU HAVE
BEEN WARNED!!!!
{@inheritDoc}public Character decodeCharacter(PushbackSequence<Character> input)
decodeCharacter 在接口中 Codec<Character>decodeCharacter 在类中 AbstractCodec<Character>input - the Character to decodeCopyright © 2023. All rights reserved.