HTMLURLs
Source Code and Documentation
Description
HTMLURLs is an Open Source Java class that contains a collection of static utility methods to manipulate and convert URL (Uniform Resource Locator) addresses from java.lang.String to java.net.URL objects and vice versa.
The HTMLURLs class is very useful in Web-based application development because speeds up the URLs manipulation, that is a common task.
The HTMLURLs main features are:
- allows set up a java.net.URL object starting from various String representation;
- checks if an URL is absolute or relative to the current local path;
- get full canonical URL address by resolving various combined relative paths (e.g.: "http://www.site.com/dir/subdir/../image.gif" became "http://www.site.com/dir/image.gif"); this last case resolve a very common problem in Web-applications.
This project is shipped as
Eclipse project, with classes compiled into the "classes" directory.
However a packaged version of this class is available as a JAR archive inside the www directory.
To install the JAR file, just copy it on your project classpath.
Documentation and examples are included on the distribution.
Download HTMLURLs from SourceForge
