Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

using java.io.File to access network files

807605Aug 9 2006 — edited Jul 23 2007
Hi,
I was wondering if the File class is able to access information about files on network. For example, would it treat a mapped network file just like a local file? Or do I need to use something like WebNFS http://www.sun.com/software/webnfs/api.xml to allow it to work seamlessly. I am developing a software to monitor files including files available on a virtual network. My software entails visiting files on network and calculating their MD5 hash. As this would involve calls to classes such as FileInputStream and File, I was wondering if the way I would access them would be similar to accessing these files locally when they are mapped to the local host. Say if they work similarly, I presume a different underlying protocol would be involved in accessing these network files. Would I need to do something to enable the working of these protocols or would the OS take care of it? Many thanks on any advice you can give.

Jeev
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 20 2007
Added on Aug 9 2006
9 comments
3,774 views