用于访问本地文件系统的 Applet 框架 [英] Applet frameworks for access to local file system

查看:37
本文介绍了用于访问本地文件系统的 Applet 框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个 Java 小程序框架或类似的框架来通过浏览器在服务器和本地机器之间同步文件.我当然可以自己制作那个小程序,但也许有人已经看过或做过那个小程序了.

I need a Java applet framework or something like that for syncing files between server and local machine through browser. Of course I can make that applet myself, but maybe someone has already seen or done that applet.

是否有通过浏览器访问本地文件系统的 Java 小程序框架?

Are there any Java applet frameworks for accessing the local file system through a browser?

推荐答案

请参阅 Applet 信息.页面 以获取对下一代"的引用.从 Next Generation 插件开始,即使是沙盒嵌入的小程序也可以访问本地文件系统(在用户许可的情况下,在提示时).

See the Applet info. page for references to 'Next Generation'. Since the Next Generation plug-in, even sand-boxed embedded applets can access the local file-system (with the permission of the user, when prompted).

下一代小程序:

  • 可以使用 Java Web Start 进行部署(同时仍嵌入网页中).
  • 因此可以访问 JNLP API,该 API 提供 JNLP 文件服务(提供对本地文件系统的沙盒访问)等内容.这是一个 演示.的文件服务它是基于一个框架&自由浮动,您可以下载源代码和构建文件.这是GIFanim:一个沙盒的嵌入式小程序,可以从本地文件中加载图像——系统(由用户选择)制作动画 GIF(然后可以将其保存回本地文件系统).
  • Can be deployed using Java Web Start (while still embedded in a web page).
  • Can therefore access the JNLP API, which provides things like the JNLP file services (which offers sand-boxed access to the local file-system). Here is a demo. of the file services it is based around a frame & free-floating, you can download the source and build files. And here is GIFanim: a sand-boxed, embedded applet that can load images off the local file-system (chosen by the user) to make animated GIFs (which it can then save back to the local file-system).

在 Next Gen. 插件之前,applet 可以通过 3 种方式访问​​本地文件系统:

Prior to the Next Gen. plug-in, applets could access the local file-system in 3 ways:

  • 受信任的小程序(由开发人员签名,用户在提示时接受).
  • 编辑策略文件(不建议开发人员使用,更不用说最终用户了).
  • 一个使用 JWS 部署的自由浮动小程序(看起来很奇怪,也可能只使用框架).

这篇关于用于访问本地文件系统的 Applet 框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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