public class URLUtilities
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.Class[] |
STRING_ARGS_2
Constant used by
encode(String, String). |
| Constructor and Description |
|---|
URLUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
encode(java.lang.String s,
java.lang.String encoding)
Calls
java.net.URLEncoder.encode(String, String) via
reflection, if we are running on JRE 1.4 or later, otherwise reverts to
the deprecated URLEncoder.encode(String) method. |
private static final java.lang.Class[] STRING_ARGS_2
encode(String, String).public static java.lang.String encode(java.lang.String s,
java.lang.String encoding)
java.net.URLEncoder.encode(String, String) via
reflection, if we are running on JRE 1.4 or later, otherwise reverts to
the deprecated URLEncoder.encode(String) method.s - the string to encode.encoding - the encoding.