FileDocCategorySizeDatePackage
EncodeTest.javaAPI DocExample965Sat Sep 09 19:54:20 BST 2000None

EncodeTest

public class EncodeTest extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)


    System.out.println(URLEncoder.encode("This string has spaces"));
    System.out.println(URLEncoder.encode("This*string*has*asterisks"));
    System.out.println(URLEncoder.encode("This%string%has%percent%signs"));
    System.out.println(URLEncoder.encode("This+string+has+pluses"));
    System.out.println(URLEncoder.encode("This/string/has/slashes"));
    System.out.println(URLEncoder.encode("This\"string\"has\"quote\"marks"));
    System.out.println(URLEncoder.encode("This:string:has:colons"));
    System.out.println(URLEncoder.encode("This~string~has~tildes"));
    System.out.println(URLEncoder.encode("This(string)has(parentheses)"));
    System.out.println(URLEncoder.encode("This.string.has.periods"));
    System.out.println(URLEncoder.encode("This=string=has=equals=signs"));
    System.out.println(URLEncoder.encode("This&string&has&ersands"));