public class UrlUtil extends Object
| 构造器和说明 |
|---|
UrlUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
decodeUrl(String url)
URL编码解码
|
static void |
encodeUrl(int b,
Appendable appender)
编码字符
|
static String |
encodeUrl(String str)
按UTF-8字符集对字串进行URL编码
|
static Appendable |
encodeUrl(String str,
Appendable appender)
按UTF-8字符集对字串进行URL编码
|
static Appendable |
encodeUrl(String str,
String symbols,
Appendable appender)
按UTF-8字符集对字串进行URL编码
|
public static final void encodeUrl(int b,
Appendable appender)
throws IOException
b - appender - IOExceptionpublic static final Appendable encodeUrl(String str, Appendable appender)
str - 要编码的字串appender - 编码输出public static final Appendable encodeUrl(String str, String symbols, Appendable appender)
str - 要编码的字串symbols - 允许不编码的符号表appender - 编码输出public static final String encodeUrl(String str)
str - 要编码的字串Copyright © 2022. All rights reserved.