Results 1 to 8 of 8
  1. #1
    Arun_N is offline Member
    Join Date
    May 2011
    Posts
    21
    Rep Power
    0

    Smile When to Use Resource Bundle?

    I have Myproperty.properties file. To load this property file I can use Properties class and Resource Bundle class.
    Which one would be better and more efficient?

  2. #2
    Arun_N is offline Member
    Join Date
    May 2011
    Posts
    21
    Rep Power
    0

    Default Re: When to Use Resource Bundle?

    am waiting ...............................

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,005
    Blog Entries
    7
    Rep Power
    20

    Default Re: When to Use Resource Bundle?

    The API documentation for the ResourceBundle class contains a nice explanation on why and how to use this class; much better than I could've said it ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  4. #4
    Arun_N is offline Member
    Join Date
    May 2011
    Posts
    21
    Rep Power
    0

    Default Re: When to Use Resource Bundle?

    I saw that i just want to know which is more efficient

  5. #5
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,005
    Blog Entries
    7
    Rep Power
    20

    Default Re: When to Use Resource Bundle?

    Quote Originally Posted by Arun_N View Post
    I saw that i just want to know which is more efficient
    Efficient w.r.t. what?

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  6. #6
    Arun_N is offline Member
    Join Date
    May 2011
    Posts
    21
    Rep Power
    0

    Default Re: When to Use Resource Bundle?

    with respect to space and time complexity..

  7. #7
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,005
    Blog Entries
    7
    Rep Power
    20

    Default Re: When to Use Resource Bundle?

    Quote Originally Posted by Arun_N View Post
    with respect to space and time complexity..
    There is a PropertyResourceBundle (a subclass of the ResourceBundle class) that uses a Properties object ... their big-Oh performance are similar (it is all in the API documentation).

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  8. #8
    Arun_N is offline Member
    Join Date
    May 2011
    Posts
    21
    Rep Power
    0

Similar Threads

  1. Beginner - which bundle to install?
    By turboscrew in forum New To Java
    Replies: 10
    Last Post: 05-19-2011, 03:42 PM
  2. JSP, JSF: Cannot find the resource bundle
    By sunnyjassal in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 02-01-2011, 08:37 PM
  3. Reading a properties file using resource bundle.
    By rudrakanth in forum New To Java
    Replies: 1
    Last Post: 02-27-2009, 12:23 PM
  4. tomcat resource bundle tab not appearing??
    By freddieMaize in forum NetBeans
    Replies: 2
    Last Post: 05-25-2008, 09:15 AM
  5. Setting the label of radio buttons from Resource bundle
    By rajeeshankar in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 12-17-2007, 09:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •