问题
How can I read from a Windows shared drive using Java in such a way that the Java code which performs the reading could run equally correctly on any platform?
回答1:
You can use JCIFS to access SMB/CIFS shares using pure Java code.
回答2:
apache commons vfs is always a good choice.
来源:https://stackoverflow.com/questions/3100625/how-can-i-read-from-a-windows-shared-drive-in-a-platform-independent-way-using-j