home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 April / DPPCPRO0499.ISO / April / Notes / 50b2wic.exe / DATA1.CAB / NotesProgramFilesJavaSupport / rt.jar / java / util / PropertyResourceBundle.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-04-23  |  1.0 KB  |  31 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.