Skip navigation links
java.util

Class PropertyResourceBundle

    • Constructor Detail

      • PropertyResourceBundle

        public PropertyResourceBundle(InputStream stream)
                               throws IOException
        Creates a new property resource bundle.
        Parameters:
        stream - an input stream, where the resources are read from
        Throws:
        NullPointerException - if stream is null
        IOException - if reading the stream fails
    • Method Detail

      • handleGetObject

        public Object handleGetObject(String key)
        Called by getObject when a resource is needed. This returns the resource given by the key.
        Specified by:
        handleGetObject in class ResourceBundle
        Parameters:
        key - the key of the resource
        Returns:
        the resource for the key, or null if it doesn't exist
      • getKeys

        public Enumeration getKeys()
        This method should return all keys for which a resource exists.
        Specified by:
        getKeys in class ResourceBundle
        Returns:
        an enumeration of the keys