Apache POI 团队今天发布了 POI 3.11 的第一个 beta 版,该版本新增了一些新功能,同时修复了大量的 bug,且支持的JDK版本升级到了1.6。
主要改进如下:
XSSF support for evaluating formula references to other Workbooks (56737)
HSSF and XSSF support for evaluating formulas with multi-sheet references,
for functions that support that (55906)
HSSF and XSSF Workbooks are now CLoseable, so you can call close() to
explicitly free the file based resources when you're done (56537)
NPOIFS now fully supports writing, including streaming write, and in-place
updating of existing entries. NPOIFSFileSystem now surpasses the old
POIFSFileSystem in all cases.
XSSF Text Extraction support for Headers, Footers and Comments (56022, 56023)
SXSSF Shared Strings optional support (53130)
XWPF Change Tracking support (56075)
HWPF password hash function (56077)
XWPF document protection with password support (56076)
SXSSF support for a system-wide setting of where Temp files get created, via
TempFile / TempFileCreationStrategy (56735)
Apache POI 3.11-beta1 发布
Apache POI 团队今天发布了 POI 3.11 的第一个 beta 版,该版本新增了一些新功能,同时修复了大量的 bug,且支持的JDK版本升级到了1.6。
主要改进如下:
更多内容请看这里。
Apache POI是一个开源的Java读写Excel、WORD等微软OLE2组件文档的项目。目前POI已经有了Ruby版本。
结构:
HSSF - 提供读写Microsoft Excel XLS格式档案的功能。
XSSF - 提供读写Microsoft Excel OOXML XLSX格式档案的功能。
HWPF - 提供读写Microsoft Word DOC格式档案的功能。
HSLF - 提供读写Microsoft PowerPoint格式档案的功能。
HDGF - 提供读Microsoft Visio格式档案的功能。
HPBF - 提供读Microsoft Publisher格式档案的功能。
HSMF - 提供读Microsoft Outlook格式档案的功能。
一段处理 EXCEL 文档的示例代码: