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.