gpt4 book ai didi

java - 通过java applet直接访问文件

转载 作者:行者123 更新时间:2023-12-02 04:21:57 25 4
gpt4 key购买 nike

我需要知道小程序是否可以使用直接文件访问功能,而不是通过 JNLP。

小程序是否可以通过标准文件类访问文件:

  • java.nio.file.Files;
  • java.io.FileInputStream;

这对于“下一代小程序”来说可能吗?

这对于预“下一代小程序”可能吗?

最佳答案

是的。如果它是一个签名且有特权的(用户允许的)小程序。

What Applets Can and Cannot Do说(部分)

Applets are either sandbox applets or privileged applets. Sandbox applets are run in a security sandbox that allows only a set of safe operations. Privileged applets can run outside the security sandbox and have extensive capabilities to access the client.

Applets that are not signed are restricted to the security sandbox, and run only if the user accepts the applet. Applets that are signed by a certificate from a recognized certificate authority can either run only in the sandbox, or can request permission to run outside the sandbox. In either case, the user must accept the applet's security certificate, otherwise the applet is blocked from running.

关于java - 通过java applet直接访问文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32682480/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com