List all available ResourceBundle Files

只谈情不闲聊 提交于 2019-11-28 00:30:57

问题


i am using ResourceBundle and I want to give the user an option to select a language for the GUI.

i want to get a list of all resource files that are under a specific package.

i don't know what resources I will have since this application is based on plug-ins.

Is there an option to ask from java to search all available resources under a package?

(if no i guess the plug-in should give all available local for it)

thank you all


回答1:


The files may reside on a web server. There is no standard way of listing files (pages) on a web server. So, in general, what you need to do is remember which locales you have resources for (perhaps create a list as part of your build process).



来源:https://stackoverflow.com/questions/2685907/list-all-available-resourcebundle-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!