Package java.util

Class ListResourceBundle

java.lang.Object
java.util.ResourceBundle
java.util.ListResourceBundle
Direct Known Subclasses:
SerializerMessages, SerializerMessages_ca, SerializerMessages_cs, SerializerMessages_de, SerializerMessages_es, SerializerMessages_fr, SerializerMessages_hu, SerializerMessages_it, SerializerMessages_ja, SerializerMessages_ko, SerializerMessages_pl, SerializerMessages_pt_BR, SerializerMessages_ru, SerializerMessages_sk, SerializerMessages_sl, SerializerMessages_sv, SerializerMessages_tr, SerializerMessages_zh, SerializerMessages_zh_TW, XMLErrorResources, XPATHErrorResources, XResourceBundle, XResourceBundleBase, XSLTErrorResources

public abstract class ListResourceBundle
extends ResourceBundle
ListResourceBundle is the abstract superclass of classes which provide resources by implementing the getContents() method to return the list of resources.
Since:
1.1
See Also:
ResourceBundle
  • Constructor Details

    • ListResourceBundle

      public ListResourceBundle()
      Constructs a new instance of this class.
  • Method Details

    • getContents

      protected abstract Object[][] getContents()
      Returns an Object array containing the resources of this ListResourceBundle. Each element in the array is an array of two elements, the first is the resource key string and the second is the resource.
      Returns:
      a Object array containing the resources.
    • getKeys

      public Enumeration<String> getKeys()
      Description copied from class: ResourceBundle
      Returns the names of the resources contained in this ResourceBundle.
      Specified by:
      getKeys in class ResourceBundle
      Returns:
      an Enumeration of the resource names.
    • handleGetObject

      public final Object handleGetObject​(String key)
      Description copied from class: ResourceBundle
      Returns the named resource from this ResourceBundle, or null if the resource is not found.
      Specified by:
      handleGetObject in class ResourceBundle
      Parameters:
      key - the name of the resource.
      Returns:
      the resource object.
    • handleKeySet

      protected Set<String> handleKeySet()
      Returns a set of the keys in this ResourceBundle but not in its parents.
      Overrides:
      handleKeySet in class ResourceBundle
      Returns:
      a set of the keys in this ResourceBundle but not in its parents.
      Since:
      1.6