[Advanced-java] URL & protocol
Joe Sam Shirah
jshirah at attglobal.net
Wed Jul 2 19:23:54 2003
Hi Marco,
The short answer from a very long discussion on the RMI list some years
back is:
file:/
and
file:///
will work in your code.
file://
will not.
Some things you just accept after a while. Otherwise, wade through the
code, which I actually did, but have now forgotten...
Joe Sam
Joe Sam Shirah - http://www.conceptgo.com
conceptGO - Consulting/Development/Outsourcing
Java Filter Forum: http://www.ibm.com/developerworks/java/
Just the JDBC FAQs: http://www.jguru.com/faq/JDBC
Going International? http://www.jguru.com/faq/I18N
Que Java400? http://www.jguru.com/faq/Java400
----- Original Message -----
From: "Marco Ferretti" <marco.ferretti@jrc.it>
To: <advanced-java@lists.xcf.berkeley.edu>
Sent: Wednesday, July 02, 2003 11:38 AM
Subject: [Advanced-java] URL & protocol
Hi there, it's me again...
I have a question that concerns the URL class and the protocol.
Suppose I want to open an URL to get a file on the hard disk...
I supposed the protocol would be "file://"
I tried to open a file in mozilla and what I get is file:///
Ie doesn't even show the protocol.
A component I found on the net opens it with "file:/"
Now I am a little bit confused ...
I checked out the api guide to get infos and it redirected me to
http://archive.ncsa.uiuc.edu/SDG/Software/Mosaic/Demo/url-primer.html which
doesn't say much concerning to my problem.
Do anyone of you can point me somewhere please ?