Ines Pfauch wrote:
> On 15.02.2005, at 16:46, Christian Andersson wrote:
>
>>
>> on linux this code
>> File f = new File("/home/user/path/to/document.sxw");
>> f.toURL().toString();
>>
>> would give
>> file:///home/user/path/to/document.sxw
>
> No, it doesnt. The URL that I get looks like file:/home/user/etc
> I thought, I need an URL that looks like file:///home/user/etc..?
> But the url with a single slash after "file:" works for opening too.
> Can you say whether the file.toURL().toString() URL under windows
> (whatever it may look like) works for opening too?
> That would help me a lot and simplify the whole URL stuff ;)
IIRC the URL with one slash only will not work anymore in OOo2.0.
Best regards,
Mathias
--
Mathias Bauer - OpenOffice.org Application Framework Project Lead
Please reply to the list only, [EMAIL PROTECTED] is a spam sink.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]