- Java.util - WeakHashMap
- Java.util - Vector
- Java.util - UUID
- Java.util - TreeSet
- Java.util - TreeMap
- Java.util - TimeZone
- Java.util - TimerTask
- Java.util - Timer
- Java.util - StringTokenizer
- Java.util - Stack
- Java.util - SimpleTimeZone
- Java.util - ServiceLoader
- Java.util - Scanner
- Java.util - ResourceBundle.Control
- Java.util - ResourceBundle
- Java.util - Random
- Java.util - PropertyResourceBundle
- Java.util - PropertyPermission
- Java.util - Properties
- Java.util - PriorityQueue
- Java.util - Observable
- Java.util - Locale
- Java.util - ListResourceBundle
- Java.util - LinkedList
- Java.util - LinkedHashSet
- Java.util - LinkedHashMap
- Java.util - IdentityHashMap
- Java.util - Hashtable
- Java.util - HashSet
- Java.util - HashMap
- Java.util - GregorianCalendar
- Java.util - Formatter
- Java.util - EnumSet
- Java.util - EnumMap
- Java.util - Dictionary
- Java.util - Date
- Java.util - Currency
- Java.util - Collections
- Java.util - Calendar
- Java.util - BitSet
- Java.util - Arrays
- Java.util - ArrayList
- Java.util - ArrayDeque
- Java.util - Home
Java.util Package Extras
- Java.util - Discussion
- Java.util - Useful Resources
- Java.util - Enumerations
- Java.util - Exceptions
- Java.util - Interfaces
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Java.util.ResourceBundle Class
Introduction
The java.util.ResourceBundle class contain locale-specific objects.Following are the important points about ResourceBundle −
The class allows you to write programs that can be easily locapzed, or translated, into different languages.
This class programs handle multiple locales at once be easily modified later to support even more locales.
The Java Platform provides two subclasses of ResourceBundle, ListResourceBundle and PropertyResourceBundle.
Class declaration
Following is the declaration for java.util.ResourceBundle class −
pubpc abstract class ResourceBundle extends Object
Field
Following are the fields for java.util.ResourceBundle class −
protected ResourceBundle parent − This is the parent bundle of this bundle.
Class constructors
Sr.No. | Constructor & Description |
---|---|
1 | ResourceBundle() This is the single constructor. |
Class methods
Sr.No. | Method & Description |
---|---|
1 | This method removes all resource bundles from the cache that have been loaded using the caller s class loader. |
2 | This method removes all resource bundles from the cache that have been loaded using the given class loader. |
3 | This method determines whether the given key is contained in this ResourceBundle or its parent bundles. |
4 | This method gets a resource bundle using the specified base name, the default locale, and the caller s class loader. |
5 | This method gets a resource bundle using the specified base name and locale, and the caller s class loader. |
6 | This method gets a resource bundle using the specified base name, locale, and class loader. |
7 | This method Returns a resource bundle using the specified base name, target locale, class loader and control. |
8 | This method returns a resource bundle using the specified base name, target locale and control, and the caller s class loader. |
9 | This method returns a resource bundle using the specified base name, the default locale and the specified control. |
10 | This method returns an enumeration of the keys. |
11 | This method returns the locale of this resource bundle. |
12 | This method gets an object for the given key from this resource bundle or one of its parents. |
13 | This method gets a string for the given key from this resource bundle or one of its parents. |
14 | This method gets a string array for the given key from this resource bundle or one of its parents. |
15 | This method gets an object for the given key from this resource bundle. |
16 | This method queries if the given date is in daypght savings time in this time zone. |
17 | This method returns a Set of all keys contained in this ResourceBundle and its parent bundles. |
18 | This method sets the parent bundle of this bundle. |
Methods inherited
This class inherits methods from the following classes −
java.util.Object