ir.webutils
Class URLChecker

java.lang.Object
  extended by ir.webutils.URLChecker

public final class URLChecker
extends java.lang.Object

URLChecker tries to clean up some URLs that do not conform to the standard and cause confusion. Valid URLs are returned unchanged. The idea behind this class is to fix some common problems (like leaving spaces in URLs) with simple heuristics.

Since:
June 1, 2001

Method Summary
static java.net.URL getURL(java.lang.String urlString)
          Returns a URL for the given string after correcting simple errors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getURL

public static java.net.URL getURL(java.lang.String urlString)
                           throws java.net.MalformedURLException
Returns a URL for the given string after correcting simple errors.

Throws:
java.net.MalformedURLException