什么是POI?[Apache.org摘录]JAVA的API如何访问微软的文件【Excel,Word等等】
2005-07-28 12:38
771 查看
Purpose
The POI project consists of APIs for manipulating various file formats based upon Microsoft's OLE 2 Compound Document format using pure Java. In short, you can read and write MS Excel files using Java. Soon, you'll be able to read and write Word files using Java. POI is your Java Excel solution as well as your Java Word solution. However, we have a complete API for porting other OLE 2 Compound Document formats and welcome others to participate.OLE 2 Compound Document Format based files include most Microsoft Office files such as XLS and DOC as well as MFC serialization API based file formats.
As a general policy we try to collaborate as much as possible with other projects to provide this functionality. Examples include: Cocoon for which there are serializers for HSSF; Open Office.org with whom we collaborate in documenting the XLS format; and Lucene for which we'll soon have file format interpretors. When practical, we donate components directly to those projects for POI-enabling them.
Why/when would I use POI?
We'll tackle this on a component level. POI refers to the whole project.So why should you use POIFS or HSSF?
You'd use POIFS if you had a document written in OLE 2 Compound Document Format, probably written using MFC, that you needed to read in Java. Alternatively, you'd use POIFS to write OLE 2 Compound Document Format if you needed to inter-operate with software running on the Windows platform. We are not just bragging when we say that POIFS is the most complete and correct implementation of this file format to date!
You'd use HSSF if you needed to read or write an Excel file using Java (XLS). You can also read and modify spreadsheets using this API, although right now writing is more mature.
Components To Date
Overview
The following are components of the entire POI project and a brief summary of their purpose.POIFS for OLE 2 Documents
POIFS is the oldest and most stable part of the project. It is our port of the OLE 2 Compound Document Format to pure Java. It supports both read and write functionality. All of our components ultimately rely on it by definition. Please see the POIFS project page for more information.HSSF for Excel Documents
HSSF is our port of the Microsoft Excel 97(-2002) file format (BIFF8) to pure Java. It supports read and write capability. Please see the HSSF project page for more information.HWPF for Word Documents
HWPF is our port of the Microsoft Word 97 file format to pure Java. It supports read and write capability. Please see the HWPF project page for more information. This component is in the early stages of development. It can already read and write simple files.Presently we are looking for a contributor to foster the HWPF development. Jump in!
HPSF for Document Properties
HPSF is our port of the OLE 2 property set format to pure Java. Property sets are mostly use to store a document's properties (title, author, date of last modification etc.), but they can be used for application-specific purposes as well.HPSF supports reading and writing of properties. However, with the current POI release only reading is possible. In order to write properties, you'll have to fetch the latest POI version from the CVS repository.
Please see the HPSF project page for more information.
相关文章推荐
- POI_Java里访问Excel,Word等格式的文件
- 【JAVA】apache poi excel 文件读取,各种数据类型,不规则excel格式都可以读取
- 如何通过WPS 2013 API 将Office(Word、Excel和PPT)文件转PDF文件
- 【JAVA】apache poi excel 文件读取,各种数据类型,不规则excel格式都可以读取
- Jakarta POI 3.0—访问微软Office格式文件的Java API
- 在Java中如何操作word, excel, pdf文件
- [Training Video - 6] [File Reading] [Java] Create and Write Excel File Using Apache POI API
- 超链接如何下载文件txt,word,excel等等
- java 调用 poi(apache的专门读写microsoft office API) 操作Excel
- java使用poi读取ppt文件和poi读取excel、word示例
- java 利用org.apache.poi.hssf包编写excel导出文件
- java使用poi读取ppt文件和poi读取excel、word示例
- [Training Video - 6] [File Reading] [Java] Read Excel File Using Apache POI API
- java使用poi读取ppt文件和poi读取excel、word示例
- Apache POI是一个开源的Java读写Excel、WORD等微软OLE2组件文档的项目。目前POI已经有了Ruby版本
- 如何通过WPS 2013 API 将Office(Word、Excel和PPT)文件转PDF文件
- Apache Project:POI-HSSF - Java API To Access Microsoft Excel Format Files(ZT)
- Java如何解决Excel导入文件时科学计数问题
- java poi技术将Excel文件内容导入数据库
- Mac OS X 下 Word VBA 宏 - 如何在 Word 里打开 Excel 文件