public object readObj(Map options) { InStream ins = @in(); try { return(ins.readObj(options)); } finally { ins.close(); } }
static Map read(Map defProps, Key key, List files) { if (files.isEmpty()) { return(defProps); } Map acc = defProps.dup(); for (int i = files.sz() - 1; i >= 0; --i) { InStream input = ((File)files.get(i)).@in(); try { acc.setAll(input.readProps()); } finally { input.close(); } } return((Map)acc.toImmutable()); }