Exemplo n.º 1
0
        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());
        }