• Post Reply Bookmark Topic Watch Topic
  • New Topic

UrlEncoder  RSS feed

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the java.net package there are two classes...
URLEncoder and URLDecoder
They can be used to encode and decode url's respectively
 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was trying to write my own URLEncoder, and halfway into writing it, I remembered the Java creed, "Someone else has probably already written it..." I looked on the Sun specs page for 2 minutes and found it. Saved me quite a bit of time.
Micah
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!