[Advanced-java] URL & protocol

Hicks, James James.Hicks at LMBerry.com
Wed Jul 2 18:46:28 2003


Use 'file://<PATH>' where <PATH> is the path to the resource you want to
open.

James Hicks

-----Original Message-----
From: Marco Ferretti [mailto:marco.ferretti@jrc.it] 
Sent: Wednesday, July 02, 2003 10:38 AM
To: advanced-java@lists.xcf.berkeley.edu
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 ?
_______________________________________________
Advanced-java mailing list
Advanced-java@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java


The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
privileged material. Any review, retransmission, dissemination or other use
of, or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received
this email in error, please contact the sender and delete the material from
all computers.