Stay organized with collections
Save and categorize content based on your preferences.
UrlQuerySanitizer.ValueSanitizer
public
static
interface
UrlQuerySanitizer.ValueSanitizer
android.net.UrlQuerySanitizer.ValueSanitizer
|
Known indirect subclasses
|
A functor used to sanitize a single query value.
Summary
Public methods
sanitize
public abstract String sanitize (String value)
Sanitize an unencoded value.
Returns |
String |
the sanitized unencoded value |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# UrlQuerySanitizer.ValueSanitizer\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Methods](#pubmethods) \n\nUrlQuerySanitizer.ValueSanitizer\n================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/net/UrlQuerySanitizer.ValueSanitizer \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nUrlQuerySanitizer.ValueSanitizer\n`\n\n\n`\n\n\n`\n\n|----------------------------------------------|\n| android.net.UrlQuerySanitizer.ValueSanitizer |\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [UrlQuerySanitizer.IllegalCharacterValueSanitizer](/reference/android/net/UrlQuerySanitizer.IllegalCharacterValueSanitizer) |-----------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------| | [UrlQuerySanitizer.IllegalCharacterValueSanitizer](/reference/android/net/UrlQuerySanitizer.IllegalCharacterValueSanitizer) | Sanitize values based on which characters they contain. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA functor used to sanitize a single query value.\n\nSummary\n-------\n\n| ### Public methods ||\n|---------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract `[String](/reference/java/lang/String) | ` `[sanitize](/reference/android/net/UrlQuerySanitizer.ValueSanitizer#sanitize(java.lang.String))`(`[String](/reference/java/lang/String)` value) ` Sanitize an unencoded value. |\n\nPublic methods\n--------------\n\n### sanitize\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract String sanitize (String value)\n```\n\nSanitize an unencoded value.\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------------------------------------|--------------------------------------|\n| [String](/reference/java/lang/String) | the sanitized unencoded value \u003cbr /\u003e |"]]