using java.io.File to access network files
807605Aug 9 2006 — edited Jul 23 2007Hi,
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