Пример #1
0
        public object readObj(Map options)
        {
            InStream ins = @in();

            try
            {
                return(ins.readObj(options));
            }
            finally
            {
                ins.close();
            }
        }
Пример #2
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());
        }