public class

URLUtilities

extends Object
java.lang.Object
   ↳ org.jfree.chart.urls.URLUtilities

Class Overview

General utility methods for URLs.

Summary

Public Constructors
URLUtilities()
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public URLUtilities ()

Public Methods

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.

Parameters
s the string to encode.
encoding the encoding.
Returns
  • The encoded string.