org.jfree.chart.urls
Class URLUtilities
java.lang.Object
org.jfree.chart.urls.URLUtilities
General utility methods for URLs.
static String | encode(String s, 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.
|
encode
public static String encode(String s,
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.
s
- the string to encode.encoding
- the encoding.