设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 软件追踪 查看内容

Apache POI 3.11-beta1发布

2014-8-8 11:42| 发布者: joejoe0332| 查看: 1699| 评论: 0|原作者: oschina|来自: oschina

摘要:   Apache POI 团队今天发布了 POI 3.11 的第一个 beta 版,该版本新增了一些新功能,同时修复了大量的 bug,且支持的JDK版本升级到了1.6。主要改进如下:XSSFsupportforevaluatingformulareferencestootherWorkboo ...

  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是一个开源的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 文档的示例代码:

// Define a few rows
for(short rownum = (short)0; rownum < 30; rownum++) {
	HSSFRow r = s.createRow(rownum);
	for(short cellnum = (short)0; cellnum < 10; cellnum += 2) {
		HSSFCell c = r.createCell(cellnum);
		HSSFCell c2 = r.createCell(cellnum+1);

		c.setCellValue((double)rownum + (cellnum/10));
		c2.setCellValue(new HSSFRichTextString("Hello! " + cellnum);
	}
}


酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部