Re: Parsing of URL's which contain Windows Path separator

2012-08-21 Thread Alan Bateman
On 20/08/2012 22:35, Chris Hegarty wrote: Shirish, Oooh, I'm not sure that any change to URL of this kind would be compatible. It may have been desirable to have this kind of behavior when URL was being originally created, but it is a legacy class, now replaced with URI, and I'm not sure a

Parsing of URL's which contain Windows Path separator

2012-08-20 Thread Shirish Kuncolienkar
Any thoughts on the following It will be good if the one could create relative url from other url which is based on windows style path. example hello.html relative http://someserver/foo/bar; becomes http://someserver/foo/hello.html; In the similar way hello.htmlrelative to file:///C:\foo\bar

Re: Parsing of URL's which contain Windows Path separator

2012-08-20 Thread Chris Hegarty
Shirish, Oooh, I'm not sure that any change to URL of this kind would be compatible. It may have been desirable to have this kind of behavior when URL was being originally created, but it is a legacy class, now replaced with URI, and I'm not sure a change like this could be done in a way to

Parsing of URL's which contain Windows Path separator

2012-08-09 Thread Shirish Kuncolienkar
Hi, I have the following piece of code URL url = new URL(file, /, C:\\temp\\Java6); System.out.println(url); URL url1 = new URL(url, hello.html); System.out.println(url1); first System out prints as file:///C:\temp\Java6\Lotus Second one prints the value