public class UrlUtil extends Object
| Constructor and Description |
|---|
UrlUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
decode(String value)
Uses URLDecoder to decode a application/x-www-form-urlencoded string, using UTF-8 as Charset.
|
static String |
decode(String value,
Charset charset)
Uses URLDecoder to decode a application/x-www-form-urlencoded string, using the given Charset.
|
static String |
encode(String value)
Uses URLEncoder to translate a string into application/x-www-form-urlencoded format, using UTF-8 as Charset.
|
static String |
encode(String value,
Charset charset)
Uses URLEncoder to translate a string into application/x-www-form-urlencoded format, using the given Charset.
|
public static String encode(String value, Charset charset)
public static String encode(String value)
public static String decode(String value, Charset charset)
Copyright © 2017. All rights reserved.