Java Glossary : remote file access

CMP home Java glossary home Menu no menu Last updated 2004-06-29 by Roedy Green ©1996-2004 Canadian Mind Products

Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

You are here : home : Java Glossary : R words : remote file access.

remote file access
The java.io.File class won't let you read or write files on some other remote machine, e.g. Applets can't read or write files on the server, even if they are signed. The File class in an application may let you read or write files on some other machine on a LAN, but that depends on the underlying operating system to make the files on the other workstations on the LAN look those files like local files. It won't do you any good to concoct filenames that look like URLs. The File class is only for reading local files!

But why? Why can't you just use an URL as your filename, and read and write files on some remote machine? The problem is you don't want people out on the Internet reading and writing your files, or files on your server, without monitoring very carefully just what they are doing. You don't want to give any old Tom, Dick or Harriet out on the Internet the keys to read or write any file on your system whenever they want.

Unfortunately, the Java file system has no security features. There is no way to identify yourself, to prove your identity, or to limit your read/write access to a given set of files or directories. It presumes unlimited read/write access. This is just not good enough for remotely reading and writing files.

Servers typically don't provide a means for remote machines to directly read or write their files. When they do, such as in Novell NFS servers, there is a whole layer of security tacked on top.

Instead, servers provide a pot pourri of indirect ways to read and write the remote files. In each case you run some program on the server that talks via the Internet to the remote computer, and does any file reading and writing on its behalf. e.g.

Each of these schemes has is own built-in security to be sure the general public can only see the files you want them too, and that authorised users can only indirectly read and write the files you want them too.

book_coverJava P2P Unleashed: With JXTA, Web Services, XML, Jini, JavaSpaces, and J2EE
0-672-32399-0
Robert Flenner, Michael Abbott, Toufic Boubez, Frank Cohen, Navaneeth Krishnan, Alan Moffet, Rajam Ramamurti, Bilal Siddiqui, Frank Sommers
Covers a variety of the more exotic techniques for inter-computer communication with Java.
amazon.com Barnes and Noble
amazon.ca chapters
amazon.co.uk amazon.de


CMP logo
CMP_home
home
Canadian Mind Products CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[24.87.56.253]
Your IP:[80.134.30.163]
You are visitor number 9027.
Please send errors, omissions and suggestions
to improve this page to Roedy Green.
You can get a fresh copy of this page from: or possibly from your local J: drive mirror:
http://mindprod.com/jgloss/remotefileaccess.html J:\mindprod\jgloss\remotefileaccess.html