摘要: 使用FilenameFilter过滤掉chapter开头的文件。 1 public class contentFilter implements FilenameFilter { 2 public boolean isContent(String file) { 3 if (file.startsWith("chapter")){ 4 return false; 5 }else{ 6 return true; 7 } 8 } 9 public boolean accept(File dir, String name) {10 ... 阅读全文
posted @ 2013-12-09 13:48 天宝 阅读(153) 评论(0) 推荐(0) 编辑