A new Apache Commons library Commons VFS (Virtual File System) has been released. It allows you to access files/streams over many protocols such as jcifs (similar to samba, http, ftp, sftp and eventually webdav.
This is a good library for scripting if access to different systems are required.