1 Clazz.declarePackage ("java.util");
2 Clazz.load (["java.util.ResourceBundle"], "java.util.PropertyResourceBundle", ["java.lang.NullPointerException", "java.util.HashMap", "java.util.Properties", "jssun.util.ResourceBundleEnumeration"], function () {
3 c$ = Clazz.decorateAsClass (function () {
5 Clazz.instantialize (this, arguments);
6 }, java.util, "PropertyResourceBundle", java.util.ResourceBundle);
7 Clazz.makeConstructor (c$,
9 Clazz.superConstructor (this, java.util.PropertyResourceBundle, []);
10 this.setStream (stream);
11 }, "java.io.InputStream");
12 Clazz.defineMethod (c$, "setStream",
14 var properties = new java.util.Properties ();
15 properties.load (stream);
16 this.lookup = new java.util.HashMap (properties);
18 }, "java.io.InputStream");
19 Clazz.makeConstructor (c$,
21 Clazz.superConstructor (this, java.util.PropertyResourceBundle, []);
22 var properties = new java.util.Properties ();
23 properties.load (reader);
24 this.lookup = new java.util.HashMap (properties);
26 Clazz.makeConstructor (c$,
28 Clazz.superConstructor (this, java.util.PropertyResourceBundle, []);
30 Clazz.overrideMethod (c$, "handleGetObject",
33 throw new NullPointerException ();
34 }return this.lookup.get (key);
36 Clazz.defineMethod (c$, "getKeys",
38 var parent = this.parent;
39 return new jssun.util.ResourceBundleEnumeration (this.lookup.keySet (), (parent != null) ? parent.getKeys () : null);
41 Clazz.overrideMethod (c$, "handleKeySet",
43 return this.lookup.keySet ();