日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > java >内容正文

java

java poi 需要jar_Java 之 POI各Jar包作用

發布時間:2023/12/15 java 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 java poi 需要jar_Java 之 POI各Jar包作用 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

目前POI的最新版本是 3.16-beta2,該版本是測試版本,穩定版本是 3.15,下載地址為 Apache POI?(http://poi.apache.org/download.html)。

一、目錄結構

目錄結構如下:

二、詳細介紹

官方地址:https://poi.apache.org/overview.html。

Maven artifactIdPrerequisitesJARNotes

poi-excelant

poi,poi-ooxml

poi-excelant-version.jar

用于讀取表格、寫入表格等一系列操作表格所用到的包

Component Map

The Apache POI distribution consists of support for many document file formats. This support is provided in several Jar files. Not all of the Jars are needed for every format. The following tables show the relationships between POI components, Maven repository tags, and the project's Jar files.

ComponentApplication typeMaven artifactIdNotes

OLE2 Filesystem

poi

Required to work with OLE2 / POIFS based files

OLE2 Property Sets

poi

Excel XLS

poi

For HSSF only, if common SS is needed see below

PowerPoint PPT

poi-scratchpad

Word DOC

poi-scratchpad

Visio VSD

poi-scratchpad

Publisher PUB

poi-scratchpad

Outlook MSG

poi-scratchpad

DDF

Escher common drawings

poi

HWMF

WMF drawings

poi-scratchpad

OOXML

poi-ooxml plus either poi-ooxml-schemas or

ooxml-schemas and ooxml-security

See notes below for differences between these options

Excel XLSX

poi-ooxml

PowerPoint PPTX

poi-ooxml

Word DOCX

poi-ooxml

Visio VSDX

poi-ooxml

PowerPoint PPT and PPTX

poi-scratchpad and poi-ooxml

SL code is in the core POI jar, but implementations are in poi-scratchpad and poi-ooxml.

Excel XLS and XLSX

poi-ooxml

WorkbookFactory and friends all require poi-ooxml, not just core poi

This table maps artifacts into the jar file name. "version-yyyymmdd" is the POI version stamp. You can see what the latest stamp is on the downloads page.

Maven artifactIdPrerequisitesJAR

poi-scratchpad

poi-scratchpad-version-yyyymmdd.jar

poi-ooxml

poi-ooxml-version-yyyymmdd.jar

poi-ooxml-schemas

poi-ooxml-schemas-version-yyyymmdd.jar

poi-examples

poi-examples-version-yyyymmdd.jar

Note:Apache commons-collections4 was added as a dependency in POI 3.15 beta 3.

poi-ooxml requires poi-ooxml-schemas. This is a substantially smaller version of the ooxml-schemas jar (ooxml-schemas-1.3.jar for POI 3.14 or later, ooxml-schemas-1.1.jar for POI 3.7 up to POI 3.13, ooxml-schemas-1.0.jar for POI 3.5 and 3.6). The larger ooxml-schemas jar is normally only required for development. Similarly, the ooxml-security jar, which contains all of the classes relating to encryption and signing, is normally only required for development. A subset of its contents are in poi-ooxml-schemas. This JAR is ooxml-security-1.1.jar for POI 3.14 onwards and ooxml-security-1.0.jar prior to that.

The OOXML jars require a stax implementation, but now that Apache POI requires Java 6, that dependency is provided by the JRE and no additional stax jars are required. The OOXML jars used to require DOM4J, but the code has now been changed to use JAXP and no additional dom4j jars are required. By the way, look at this FAQ if you have problems when using a non-Oracle JDK.

The ooxml schemas jars are compiled with Apache XMLBeans 2.3, and so can be used at runtime with any version of XMLBeans from 2.3 or newer. Wherever possible though, we recommend that you use XMLBeans 2.6.0 with Apache POI, and that is the version now shipped in the binary release packages.

總結:按照需要導入jar包及相關依賴jar包。

poi-3.15.jar ?(excel文件生成需要)

poi-examples-3.15.jar(官方示例,開發不需要)

poi-excelant-3.15.jar(不需要)

poi-ooxml-3.15.jar(excel,word,ppt均需要)

poi-ooxml-schemas-3.15.jar(excel需要)

poi-scratchpad-3.15.jar(ppt,vsd,word,viso,outlook等需要)

總結

以上是生活随笔為你收集整理的java poi 需要jar_Java 之 POI各Jar包作用的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。