Jody Garnett ha scritto: > Andrea we have a similar class in uDig called URLUtils that handles a > lot of these issues; I would love to compare implementations etc... So > yes the issue is very real; in particular the Java File classes do not > have any great way of dealing with the "root" items: > - C: D: on windows - ie drive letters > - \\host.port\share on windows - wacka wacka paths > - / on unix - root
Then do compare and let us know. The patch provided that the user is the very mechanical: file.toURL() --> file.toURI().toURL() What does your class offer more? I'm also disappointed that the uDig community did not contribute back this one earlier if the problem was already known. Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel