Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • 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
If you settle for what they are giving you, you deserve what you get. Fight for this tiny ad!
Rocket Oven Kickstarter - from the trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!