1 |
/* URLEncoder.java -- Class to convert strings to a properly encoded URL |
/* URLEncoder.java -- Class to convert strings to a properly encoded URL |
2 |
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
39 |
|
|
40 |
import java.io.UnsupportedEncodingException; |
import java.io.UnsupportedEncodingException; |
41 |
|
|
42 |
/** |
/* |
43 |
* Written using on-line Java Platform 1.2/1.4 API Specification, as well |
* Written using on-line Java Platform 1.2/1.4 API Specification, as well |
44 |
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998). |
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998). |
45 |
* Status: Believed complete and correct. |
* Status: Believed complete and correct. |
94 |
* |
* |
95 |
* @return The converted String |
* @return The converted String |
96 |
* |
* |
97 |
|
* @exception UnsupportedEncodingException If the named encoding is not |
98 |
|
* supported |
99 |
|
* |
100 |
* @since 1.4 |
* @since 1.4 |
101 |
*/ |
*/ |
102 |
public static String encode(String s, String encoding) |
public static String encode(String s, String encoding) |