ArrayResourceBundle is an abstract subclass of ResourceBundle that manages locale-dependent resources in an array. By using numeric references rather than string references, it requires less overhead and provides better performance than ListResourceBundle and PropertyResourceBundle. See ResourceBundle for more information about resource bundles in general.

Subclasses must override getContents and provide an array, where each item in the array is the resource value. The key for each resource value is its numeric offset in the array. For example, the first element in the array has the key 0. It may be retrieved by using either getObject(0) or getObject("0");

The following example shows the structure of a ResourceBundle based on ArrayResourceBundle.