java.lang.Object | |
↳ | android.net.UrlQuerySanitizer.IllegalCharacterValueSanitizer |
Sanitize values based on which characters they contain. Illegal characters are replaced with either space or '_', depending upon whether space is a legal character or not.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | ALL_BUT_NUL_AND_ANGLE_BRACKETS_LEGAL |
|
|||||||||
int | ALL_BUT_NUL_LEGAL |
|
|||||||||
int | ALL_BUT_WHITESPACE_LEGAL |
|
|||||||||
int | ALL_ILLEGAL |
|
|||||||||
int | ALL_OK | Mask with all fields set to OK | |||||||||
int | ALL_WHITESPACE_OK | Mask with both regular space and other whitespace OK | |||||||||
int | AMP_AND_SPACE_LEGAL |
|
|||||||||
int | AMP_LEGAL |
|
|||||||||
int | AMP_OK | Allow ampersand characters ('&') | |||||||||
int | DQUOTE_OK | Allow double quote characters. | |||||||||
int | GT_OK | Allow greater-than characters. | |||||||||
int | LT_OK | Allow less-than characters. | |||||||||
int | NON_7_BIT_ASCII_OK | Allow characters with character codes 128 to 255. | |||||||||
int | NUL_OK | Allow nul characters ('\0') | |||||||||
int | OTHER_WHITESPACE_OK | Allow whitespace characters other than space. | |||||||||
int | PCT_OK | Allow percent-sign characters ('%') | |||||||||
int | SCRIPT_URL_OK | Allow text to start with a script URL such as "javascript:" or "vbscript:" | |||||||||
int | SPACE_LEGAL |
|
|||||||||
int | SPACE_OK | Allow space (' ') characters. | |||||||||
int | SQUOTE_OK | Allow single quote characters. | |||||||||
int | URL_AND_SPACE_LEGAL |
|
|||||||||
int | URL_LEGAL |
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Construct a sanitizer.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Sanitize a value.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
|||||||||||
From interface
android.net.UrlQuerySanitizer.ValueSanitizer
|
Mask with all fields set to OK
Mask with both regular space and other whitespace OK
Allow ampersand characters ('&')
Allow double quote characters. ('"')
Allow greater-than characters. ('>')
Allow less-than characters. ('<')
Allow characters with character codes 128 to 255.
Allow nul characters ('\0')
Allow whitespace characters other than space. The other whitespace characters are '\t' '\f' '\n' '\r' and '\0x000b' (vertical tab)
Allow percent-sign characters ('%')
Allow text to start with a script URL such as "javascript:" or "vbscript:"
Allow space (' ') characters.
Allow single quote characters. ('\'')
Construct a sanitizer. The parameters set the behavior of the sanitizer.
flags | some combination of the XXX_OK flags. |
---|
Sanitize a value.