O'Reilly logo

Java 9: Building Robust Modular Applications by Jason Lee, Peter Verhas, Dr. Edward Lavieri

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Methods

The ResourceBundle class has 18 methods, each described here:

  • clearCache():
      public static final void clearCache()
Component Details
Throws

None

Parameters

None

Returns None
      public static final void clearCache(ClassLoader loader)
Component Details
Throws

NullPointerException (if loader is null)

Parameters loader: the class loader
Returns None
  • containsKey():
      public boolean containsKey(String key)
Component Details
Throws

NullPointerException (if key is null)

Parameters key: resource key
Returns true/false depending on if the key is in the ResourceBundle or parent bundles
  • getBundle():
      public static final ResourceBundle getBundle(String baseName)
Component Details
Throws

MissingResourceException ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required