public class URLEncoder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static URLEncoder |
DEFAULT |
protected static char[] |
hexadecimal |
protected java.util.BitSet |
safeCharacters |
Constructor and Description |
---|
URLEncoder() |
Modifier and Type | Method and Description |
---|---|
void |
addSafeCharacter(char c) |
java.lang.String |
encode(java.lang.String path)
Deprecated.
|
java.lang.String |
encode(java.lang.String path,
java.lang.String encoding)
URL encodes the provided path using the given encoding.
|
protected static final char[] hexadecimal
public static final URLEncoder DEFAULT
protected java.util.BitSet safeCharacters
public void addSafeCharacter(char c)
@Deprecated public java.lang.String encode(java.lang.String path)
encode(String, String)
path
- The path to encodepublic java.lang.String encode(java.lang.String path, java.lang.String encoding)
path
- The path to encodeencoding
- The encoding to use to convert the path to bytesCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.