2013年3月27日

摘要: public class LaunchPath { private static boolean endsWith(String fileName, String extension) { return (extension == null) || fileName == null || (fileName.toLowerCase().endsWith(extension.toLowerCase())); } public static String[] listFileNames(String dir, String extension) { String str... 阅读全文
posted @ 2013-03-27 23:55 SmartAnyWhere 阅读(300) 评论(0) 推荐(0)

2013年3月21日

摘要: public class LaunchDirectory { private static String dir = null; public static String getDirectory() { String dirTemp = dir; if (dirTemp == null) { //用于得到系统的属性,返回系统参数文件中这个方法指定键所代表的值. dirTemp = System.getProperty("LaunchDirectory"); if (dirTemp == null || dirTemp.length() == 0... 阅读全文
posted @ 2013-03-21 15:02 SmartAnyWhere 阅读(295) 评论(0) 推荐(0)

导航