Why does the new File(URI) constructor restricts the uri to hierarchical?

Alan Bateman Alan.Bateman at oracle.com
Tue May 17 05:24:34 PDT 2011


Paulo Levi wrote:
> Yes, they are relative to the current directory of the file normally 
> (the current dir won't work since the file might not be there).
If you know they are relative to the current directory then just use new 
File("").toURI().resolve(link).

-Alan.



More information about the net-dev mailing list