Two Laptop Bag*
The moose likes Java in General and the fly likes URLEncoder Deprecation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "URLEncoder Deprecation" Watch "URLEncoder Deprecation" New topic
Author

URLEncoder Deprecation

henri henri
Ranch Hand

Joined: Oct 03, 2005
Posts: 115
My method appends a String to the end of a URL via the encode() method to enable someone to search the Internet.
init:
deps-jar:
Compiling 1 source file to C:\Documents and Settings\Serge\film_titles\build\classes
C:\Documents and Settings\Serge\film_titles\src\film_titles\SE800i.java:280: warning: [deprecation] encode(java.lang.String) in java.net.URLEncoder has been deprecated
url += URLEncoder.encode(keyword);
1 warning
compile-single:
run-single:



Is there an equivalent new method to do the same job?

Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Did you go and read the Javadoc for this class?


[Jess in Action][AskingGoodQuestions]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: URLEncoder Deprecation
 
Similar Threads
NotSerializableException
URLEncoder class ?
how to extract search engine results
Simulating Post in Java code.....