简体   繁体   English

Java小程序中的.properties文件列表

[英]List of .properties files in Java applet

Is there a way to get a list of properties files from inside applet without downloading jar file? 有没有一种方法可以从applet内部获取属性文件列表,而无需下载jar文件?

I can get the jar file using getCodeBase() and use it with jar reader, but this option is unacceptable for me since I have to download the file again. 我可以使用getCodeBase()获取jar文件,并将其与jar阅读器一起使用,但是由于我必须再次下载该文件,因此该选项对我来说是不可接受的。

I do not want to download the file again. 我不想再次下载文件。 I want to use the one that is already downloaded and running. 我要使用已经下载并正在运行的软件。

I want to use the one I already downloaded.. 我想使用我已经下载的一个。

So what is stopping you? 那么什么阻止了你? Note that an URL pointing back to the server for any resource that is already cached, will result in the JVM using the cached copy (even if the console indicates otherwise). 请注意,指向服务器的已缓存资源的URL将导致JVM使用缓存副本(即使控制台另有指示)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM