public final class PercentEscaper extends Object
| Constructor and Description |
|---|
PercentEscaper()
Creates a percent escaper with default settings and encode ' ' as "%20".
|
PercentEscaper(String safeChars,
boolean usePlusForSpace)
Creates a percent escaper.
|
| Modifier and Type | Method and Description |
|---|---|
String |
escape(String original)
Escapes a string with the current settings on the escaper.
|
public PercentEscaper(@NonNull
String safeChars,
boolean usePlusForSpace)
safeChars - a collection of characters that will not be escapedusePlusForSpace - escape ' ' as '+' if true, "%20" otherwisepublic PercentEscaper()
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/