@@ -0,0 +1,864 @@
+/**%0A *Copyright 2012-2013.All Rights Reserved%0A */%0Apackage org.pretty.common.utils;%0A%0A/**%0A * %E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%9B%B8%E5%85%B3%E7%9A%84%E5%B7%A5%E5%85%B7%E6%96%B9%E6%B3%95%0A * @author %3Ca href=%22mailto:lazy_p@163.com%22%3Elazyp%3C/a%3E%0A * @version 2013-10-15%0A */%0Apublic final class OsUtils %7B%0A    /**%0A     * %E8%8E%B7%E5%8F%96%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E5%90%8D%E5%AD%97:windows or linux or mac%0A     * @return%0A     */%0A    public static String getOsName() %7B%0A        return System.getProperty(%22os.name%22);%0A    %7D%0A%0A    /**%0A     * %E8%8E%B7%E5%8F%96%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%9A%84%E7%89%88%E6%9C%AC%E5%8F%B7%0A     * @return%0A     */%0A    public static String getOsVersion() %7B%0A        return System.getProperty(%22os.version%22);%0A    %7D%0A%0A    /**%0A     * %E8%8E%B7%E5%8F%96%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E6%9E%B6%E6%9E%84%0A     * @return%0A     */%0A    public static String getOsArch() %7B%0A        return System.getProperty(%22os.arch%22);%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        System.out.println(OsUtils.getOsName());%0A        System.out.println(OsUtils.getOsVersion());%0A        System.out.println(OsUtils.getOsArch());%0A    %7D%0A%7D%0A

add OsUtils操作系统相关的工具方法