public class URLUtilities extends java.lang.Object
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. |
public URLUtilities()
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.