开发者

Reading files remotely

开发者 https://www.devze.com 2023-01-10 18:00 出处:网络
Is it possibl开发者_开发问答e to read files from remote computers in JAVA and how?Yes.You can readusing FTP, NFS, HTTP, Windows shares and more.The precise way to do it depends on what protocol you wa

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

精彩评论

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