Create an Account
username: password:
 
  MemeStreams Logo

MemeStreams Discussion

search


This page contains all of the posts and discussion on MemeStreams referencing the following web page: Most Significat Bit Labs :: URLParser. You can find discussions on MemeStreams as you surf the web, even if you aren't a MemeStreams member, using the Threads Bookmarklet.

Most Significat Bit Labs :: URLParser
by Acidus at 5:16 pm EDT, Jul 1, 2005

URLParser is a Java class to parse out the different fields of a URL. The parser included in Java's URL class is painfully bad. Not only does it not allow access to all the different URL fields, but does not return the proper information for getPath() or getFile()!
URLParser allows access to the following fields:

* Protocol
* Username
* Password
* Hostname
* Port number
* Path
* Filename
* Query String
* Fragment

Here is a screen shot showing the differences between Java's parser and mine.


 
 
Powered By Industrial Memetics