使用java操作Excel文件(12) public String getDescription() { return "电子表格文档"; }
//-------------------------------------------------- public boolean accept(File f) { String extension = "xls"; if (f.isDirectory()) { return true; } String name = f.getName(); if (getFilePostfix(name).equals(extension)) { return true; } else { return false; } }}8. 结束以上的对于POI的介绍只是很简单的引导大家入个门,如果大家感兴趣地话,可以自己参考POI的文档。