KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > net > URLDecoder

java.net
Class URLDecoder

java.lang.Object
  extended by java.net.URLDecoder
See Also:
Top Examples, Source Code, IllegalArgumentException

@Deprecated
public static String decode(String s)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[424]Decoding URL
By Anonymous on 2003/09/29 17:31:23  Rate
URLDecoder.decode ( credentials ) .getBytes (  ) ,

public static String decode(String s,
                            String enc)
                     throws UnsupportedEncodingException
See Also:
URLEncoder.encode(java.lang.String, java.lang.String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1049]Use UTF-8 to decode URL
By Anonymous on 2004/10/13 10:08:30  Rate
URL url = new URL ( "http://www.KickJava.com/" ) ; 
 FileInputStream stream = new FileInputStream ( URLDecoder.decode ( url.getFile (  ) , "UTF-8" )  ) ;


[1260]Decode cookie
By i_gupta { at } rediffmail { dot } com on 2005/01/20 06:56:40  Rate
String userDict = ""; 
 try  {  
 userDict = URLDecoder.decode ( cookies [ i ] .getValue (  ) ,"UTF-8" ) ; 
  } catch  ( UnsupportedEncodingException e )   
  {  
 System.out.println ( e ) ;         
  } 


public URLDecoder()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags