Package java.util

Class PropertyResourceBundle


  • public class PropertyResourceBundle
    extends ResourceBundle
    PropertyResourceBundle loads resources from an InputStream. All resources are Strings. The resources must be of the form key=value, one resource per line (see Properties).
    Since:
    1.1
    See Also:
    ResourceBundle, Properties
    • Constructor Detail

      • PropertyResourceBundle

        public PropertyResourceBundle​(InputStream stream)
                               throws IOException
        Constructs a new instance of PropertyResourceBundle and loads the properties file from the specified InputStream.
        Parameters:
        stream - the InputStream.
        Throws:
        IOException - if an error occurs during a read operation on the InputStream.
      • PropertyResourceBundle

        public PropertyResourceBundle​(Reader reader)
                               throws IOException
        Constructs a new resource bundle with properties read from reader.
        Parameters:
        reader - the Reader
        Throws:
        IOException
        Since:
        1.6