Multivalent API

phelps.net
Class URLs

java.lang.Object
  extended by phelps.net.URLs

public class URLs
extends java.lang.Object

URL-related utility classes.

Version:
$Revision: 1.4 $ $Date: 2003/06/01 08:16:57 $

Method Summary
static java.net.URI toURI(java.net.URL url)
          With URI#toURL(URI), safe interconversion between URI and URL, working around Java bugs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toURI

public static java.net.URI toURI(java.net.URL url)
                          throws java.net.URISyntaxException
With URI#toURL(URI), safe interconversion between URI and URL, working around Java bugs. Note also that File.toURL().getPath() is buggy if file contains a '#' [as of Java 1.4].

Throws:
java.net.URISyntaxException

Multivalent API