This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ResourceBundle

 
prasanna pati
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is ResourceBundle ? what is locale specific object ? what is the difference between propertyresourcebundle & list.. ? what we can do with these ResourceBundle s? when they r needed ?
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I load property files into a ResourceBundle for EJB applications as the EJB spec forbids an enterprise bean to use the java.io package to access files and directories in the file system.
 
Selva Varadhan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Resource bundles nothing but key/value pairs. Java contains ResourceBundle Abstract base class and two subclasses called ListResourceBundle and PropertyResourceBundle to handle these key/value pair Concepts.
Locale specific object coming in to the picture when, you want to design one application, specific to the particular Language or Country.
ListResourceBundle packs key/value pair in a separate class file but PropertyResourceBudle packs key/value pair in a separate ´┐Ż. properties´┐Ż text file. for more detailed information go through this sun site

http://java.sun.com/docs/books/tutorial/i18n/resbundle/concept.html

I hope this will give what u expected.
 
prasanna pati
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Roger Chung-Wee & Selva Varadhan

thanks for help & keep it up .

regards

prasanna
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic