Packages  This Package  Prev  Next  Index  

§4.10 Class URLEncoder

public  class  java.net.URLEncoder
    extends  java.lang.Object  (I-§1.12)
{
        // Methods
    public static String encode(String  s);	§4.10.1
}
The class contains a utility method for converting a String into a MIME format called "x- www-form-urlencoded" format.

To convert a String, each character is examined in turn:


Methods

encode

public static String encode(String s)
Translates a String into x-www-form-urlencoded format.
Parameters:
s - String to be translated
Returns:
the translated String.

Packages  This Package  Prev  Next  Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to doug.kramer@sun.com