直播365足球-beat365投注网站-bst365官网

Java 之 POI各Jar包作用

目前POI的最新版本是 3.16-beta2,该版本是测试版本,稳定版本是 3.15,下载地址为 Apache POI (http://poi.apache.org/download.html)。 一、目录结构 目录

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

POIFS

OLE2 Filesystem

poi

Required to work with OLE2 / POIFS based files

HPSF

OLE2 Property Sets

poi

HSSF

Excel XLS

poi

For HSSF only, if common SS is needed see below

HSLF

PowerPoint PPT

poi-scratchpad

HWPF

Word DOC

poi-scratchpad

HDGF

Visio VSD

poi-scratchpad

HPBF

Publisher PUB

poi-scratchpad

HSMF

Outlook MSG

poi-scratchpad

DDF

Escher common drawings

poi

HWMF

WMF drawings

poi-scratchpad

OpenXML4J

OOXML

poi-ooxml plus either poi-ooxml-schemas orooxml-schemas and ooxml-security

See notes below for differences between these options

XSSF

Excel XLSX

poi-ooxml

XSLF

PowerPoint PPTX

poi-ooxml

XWPF

Word DOCX

poi-ooxml

XDGF

Visio VSDX

poi-ooxml

Common SL

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.

Common SS

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

commons-logging, commons-codec, commons-collections, log4j

poi-version-yyyymmdd.jar

poi-scratchpad

poi

poi-scratchpad-version-yyyymmdd.jar

poi-ooxml

poi, poi-ooxml-schemas

poi-ooxml-version-yyyymmdd.jar

poi-ooxml-schemas

xmlbeans

poi-ooxml-schemas-version-yyyymmdd.jar

poi-examples

poi, poi-scratchpad, poi-ooxml

poi-examples-version-yyyymmdd.jar

ooxml-schemas

xmlbeans

ooxml-schemas-1.3.jar

ooxml-security

xmlbeans For signing: bcpkix-jdk15on, bcprov-jdk15on, xmlsec, slf4j-api

ooxml-security-1.1.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等需要)

← 上一篇: 三清山在江西哪个城市,三清山属于哪个城市,答案让人意外!
下一篇: 提高图片分辨率在线 – 高质量清晰放大工具 →

相关推荐

苏州为什么叫姑苏

苏州为什么叫姑苏

苏州为什么叫姑苏 姑苏由山得名。在吴中区木渎镇尧峰山西北方向有一座山,唐朝《吴地记》称为姑苏山,北宋《吴郡图经续记》称为姑苏山、

坦克世界账号,新手注册到高级特权,避坑指南

坦克世界账号,新手注册到高级特权,避坑指南

刚入坑坦克世界就被满屏的“高账”“银币收益”整懵了?注册账号时360平台和官网到底该选哪个?​​别慌!​​ 这篇指南专治新手焦虑——

腥红之月亚索皮肤多少钱(亚索四个皮肤手感对比)

腥红之月亚索皮肤多少钱(亚索四个皮肤手感对比)

在英雄联盟中,皮肤数量远远大于英雄数量,有些皮肤不仅便宜实惠,而且用起来相当舒服流畅,比如剑圣的星战,蛮王的勇敢的心都是便宜好

你来这里干什么?

你来这里干什么?

practicum老师常常拿到relief,就是东马学校里常说的“sit-in"。这里有13位实习老师,每天我们每一个人都会拿到2节到4节不等的relief。 这是工作的

言之有物丨罗伊斯告别倒计时:12年,那一场风花雪月的童话

言之有物丨罗伊斯告别倒计时:12年,那一场风花雪月的童话

多特蒙德主场与巴黎圣日耳曼的欧冠比赛,进行到第83分钟时,罗伊斯来到场边准备上场,全场顿时掌声雷动,欢呼声不停。在威斯特法伦球场

快穿之如何疼爱

快穿之如何疼爱

《快穿之如何疼爱》快穿之如何疼爱,作者路蔷薇,聚合中文网更新快无错章,是看快穿之如何疼爱电子书的首选网站。快穿之如何疼爱最新章节情