Package org.nutz.lang.util

Examples of org.nutz.lang.util.MultiLineProperties.load()


        // 循环读取该语言的文件夹
        for (NutResource nr : nrs) {
          // 读取多行属性
          MultiLineProperties p = new MultiLineProperties();
          Reader r = nr.getReader();
          p.load(r);
          r.close();

          // 获取当前语言的 Map
          Map<String, Object> msgs = re.get(langType);
          if (null == msgs) {
View Full Code Here


     * @return 自身
     */
    public PropertiesProxy joinAndClose(Reader r) {
        MultiLineProperties mp = new MultiLineProperties();
        try {
            mp.load(r);
        }
        catch (IOException e) {
            throw Lang.wrapThrow(e);
        }
        finally {
View Full Code Here

                // 循环读取该语言的文件夹
                for (NutResource nr : nrs) {
                    // 读取多行属性
                    MultiLineProperties p = new MultiLineProperties();
                    Reader r = nr.getReader();
                    p.load(r);
                    r.close();

                    // 获取当前语言的 Map
                    Map<String, Object> msgs = re.get(langType);
                    if (null == msgs) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.