PropertyResourceBundle


PropertyResourceBundle java.util

Java 1.1

This class is a concrete subclass of ResourceBundle . It reads a Properties file from a specified InputStream and implements the ResourceBundle API for looking up named resources from the resulting Properties object. A Properties file contains lines of the form:

   name   =   value   

Each such line defines a named property with the specified String value. Although you can instantiate a PropertyResourceBundle yourself, it is more common to simply define a Properties file and then allow ResourceBundle.getBundle( ) to look up that file and return the necessary PropertyResourceBundle object. See also Properties and ResourceBundle .

Figure 16-50. java.util.PropertyResourceBundle

 public class  PropertyResourceBundle  extends ResourceBundle {  // Public Constructors  public  PropertyResourceBundle  (java.io.InputStream  stream  ) throws java.io.IOException;  // Public Methods Overriding ResourceBundle  public Enumeration<String>  getKeys  ( );        public Object  handleGetObject  (String  key  );   } 



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net