• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.util.Properties & java.util.ResourceBundle  RSS feed

Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that's not a big point! But i want to get property for my web app without knowing the exact place of the property files.
For doing this i used a ResourceBundle.getBundle(myFileName). The file have only to be in my CLASSPATH. But what i have is a ResourceBundle object and i want a Properties object.
now problems to create a Properties Object with the data inside the resourceBundle: a loop and it's done.
But i dislike this. Is there no other way to get this Properties Object (the functionnality are so close to ResourceBundle)?
Or prehaps you can get directly the Properties from an unknowned place?
if you have a idee let me know?
Benjamin l´┐Żonard
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!