Save This Page
Home » apache-harmony-6.0-src-r917296-snapshot » java » util » [javadoc | source]
java.util
public class: PropertyResourceBundle [javadoc | source]
java.lang.Object
   java.util.ResourceBundle
      java.util.PropertyResourceBundle
{@code PropertyResourceBundle} loads resources from an {@code InputStream}. All resources are Strings. The resources must be of the form {@code key=value}, one resource per line (see Properties).
Field Summary
 Properties resources     
Fields inherited from java.util.ResourceBundle:
parent
Constructor:
 public PropertyResourceBundle(InputStream stream) throws IOException 
    Constructs a new instance of {@code PropertyResourceBundle} and loads the properties file from the specified {@code InputStream}.
    Parameters:
    stream - the {@code InputStream}.
    Throws:
    IOException - if an error occurs during a read operation on the {@code InputStream}.
 public PropertyResourceBundle(Reader reader) throws IOException 
    Constructs a new instance of PropertyResourceBundle and loads the properties from the reader.
    Parameters:
    reader - the input reader
    Throws:
    IOException -
    since: 1.6 -
Method from java.util.PropertyResourceBundle Summary:
getKeys,   handleGetObject,   handleKeySet
Methods from java.util.ResourceBundle:
clearCache,   clearCache,   containsKey,   getBundle,   getBundle,   getBundle,   getBundle,   getBundle,   getBundle,   getKeys,   getLocale,   getObject,   getString,   getStringArray,   handleGetObject,   handleKeySet,   keySet,   setParent
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.util.PropertyResourceBundle Detail:
 public Enumeration<String> getKeys() 
    Answers the names of the resources contained in this PropertyResourceBundle.
 public Object handleGetObject(String key) 
    Answers the named resource from this PropertyResourceBundle, or null if the resource is not found.
 protected Set<String> handleKeySet() 
    Answers a set of the keys in this ResourceBundle but not in its parents.