phelps.net
Class URLs
public
class
URLs
extends Object
URL-related utility classes.
Version: $Revision: 1.4 $ $Date: 2003/06/01 08:16:57 $
Method Summary |
static URI | toURI(URL url)
With URI#toURL(URI), safe interconversion between URI and URL, working around Java bugs.
|
public static URI toURI(URL url)
With URI#toURL(URI), safe interconversion between URI and URL, working around Java bugs.
- URI.create() and new URI(String) go boom if path has space
- Java URI doesn't recognize the URLs obtained from resources in JAR (protocol "jar:file") -- treats scheme as "jar" and ssp as opaque
Note that File.toURL().getPath() is buggy if file contains a '#'.