从Java程序访问NFS共享 [英] Access NFS share from Java program

查看:995
本文介绍了从Java程序访问NFS共享的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从Java程序的NFS共享中读取一些数据.我需要该程序首先向NFS服务器进行身份验证,然后再执行I/O. (要求不预先安装NFS共享.)

I'd like to read some data from an NFS share from my Java program. I'd need the program to authenticate to the NFS server first, then do the I/O. (Requiring the NFS share to be previously mounted is not acceptable.)

因此,我想要该库提供的功能: http://jcifs.samba.org/,但NFS代替CIFS除外.这样的东西已经内置在Java中了吗,还是我需要第三方库?

So, I'd like the functionality that's provided by this library: http://jcifs.samba.org/ , except for NFS instead of CIFS. Is such a thing built into Java already, or do I need a third-party library?

我也对是否可以在Perl,Python或Ruby中完成感兴趣.但主要是Java.

I'm also interested in whether this can be done in Perl, Python, or Ruby. But mostly Java.

推荐答案

我是上述Java中的NFS客户端的作者.很抱歉收到这么晚的回复.即使我不确定它是否与Java 1.4+兼容,我仍然有一个副本.如果有真正的兴趣,我可以解决.

I am the author of the NFS client in Java mentioned above. Sorry for such a late reply. I still have a copy lying around even though I am not sure whether it is compatible with Java 1.4+. I can work on it if there is real interest.

这篇关于从Java程序访问NFS共享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆