开发者

Reading files remotely

Is it possibl开发者_开发问答e to read files from remote computers in JAVA and how?


Yes. You can read using FTP, NFS, HTTP, Windows shares and more. The precise way to do it depends on what protocol you want to use.


Yes. But only if they are shared by some mechanism like SMB, FTP, NFS, HTTP...

WebDAV is way of sharing files over HTTP. And there are JAVA API'S to read from same.

JCIFS is the answer if the folders are exported as Widnows shares (http://jcifs.samba.org/).

Apache Commons VFS is a common API for accessing files through a lot of different protocols (http://commons.apache.org/vfs/).


You mean reading an URL? Then http://www.java2s.com/Code/Java/Network-Protocol/URLReader.htm is your friend

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜