home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD 31 / SUPERCDa.iso / Inet / HotJava / hjava.exe / Windows / resource / jre / lib / rt.jar / java / util / PropertyResourceBundle.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-11-11  |  1.2 KB  |  36 lines

  1. package java.util;
  2.  
  3. import java.io.IOException;
  4. import java.io.InputStream;
  5.  
  6. public class PropertyResourceBundle extends ResourceBundle {
  7.    private Properties lookup = new Properties();
  8.  
  9.    public PropertyResourceBundle(InputStream var1) throws IOException {
  10.       this.lookup.load(var1);
  11.    }
  12.  
  13.    public Object handleGetObject(String var1) {
  14.       Object var2 = this.lookup.get(var1);
  15.       return var2;
  16.    }
  17.  
  18.    public Enumeration getKeys() {
  19.       Object var1 = null;
  20.       if (super.parent != null) {
  21.          Enumeration var2 = this.lookup.keys();
  22.          Enumeration var3 = super.parent.getKeys();
  23.          var1 = new 1(var2, var3, this);
  24.       } else {
  25.          var1 = this.lookup.keys();
  26.       }
  27.  
  28.       return (Enumeration)var1;
  29.    }
  30.  
  31.    // $FF: synthetic method
  32.    static Properties access$0(PropertyResourceBundle var0) {
  33.       return var0.lookup;
  34.    }
  35. }
  36.