当前位置:网站首页>jxl笔记
jxl笔记
2022-07-05 12:38:00 【51CTO】
用了很长一段实践的jxl,今天也来记记里面的关键点。
jxl主要是java用来操作excel的。可以将excel中的内的内容读取出来,也可以写一些内容到excel中。
无论是读和写都非常的相似。 读取时主要的类有: WritableWorkBook(其实例对象通过静态方法创建 : WorkBook.createWorkBook(),实参可以为文件,输出流 读取时应该就是文件 ); Sheet类(其相当于文件中的一张表,通过 WritableWorkBook的实例的createSheet()方法实例化。)接下来就是读取不消说。
写操作时:WritableWorkBook(其实例对象通过静态方法创建 : WorkBook.createWorkBook(),实参可以为文件,输出流 写操作时应该就是输出流 ); WritableSheet类(其相当于文件中的一张表,通过 WritableWorkBook的实例的createSheet()方法实例化。),接下来就是写,也不消说。
边栏推荐
- GPS數據格式轉換[通俗易懂]
- JDBC -- extract JDBC tool classes
- OPPO小布推出预训练大模型OBERT,晋升KgCLUE榜首
- 10 minute fitness method reading notes (3/5)
- The relationship between the size change of characteristic graph and various parameters before and after DL convolution operation
- MySQL index - extended data
- Correct opening method of redis distributed lock
- stm32和电机开发(从架构图到文档编写)
- Distributed cache architecture - cache avalanche & penetration & hit rate
- 超高效!Swagger-Yapi的秘密
猜你喜欢

Learn memory management of JVM 01 - first memory

How to connect the API interface of Taobao open platform (super detailed)

Simply take stock reading notes (4/8)

Taobao order interface | order flag remarks, may be the most stable and easy-to-use interface

Redis highly available sentinel mechanism

Anaconda creates a virtual environment and installs pytorch

Distributed cache architecture - cache avalanche & penetration & hit rate

Summary of C language learning problems (VS)

Pytorch two-layer loop to realize the segmentation of large pictures

Redis highly available slice cluster
随机推荐
10 minute fitness method reading notes (2/5)
Detailed structure and code of inception V3
Redis cluster configuration
Take you hand in hand to develop a service monitoring component
ZABBIX agent2 monitors mongodb nodes, clusters and templates (official blog)
NLP engineer learning summary and index
Principle of universal gbase high availability synchronization tool in Nanjing University
Simply take stock reading notes (1/8)
GPON technical standard analysis I
Experimental design - using stack to realize calculator
About cache exceptions: solutions for cache avalanche, breakdown, and penetration
Full text search of MySQL
Migrate data from Mysql to neo4j database
Redis highly available sentinel mechanism
Solve the problem of cache and database double write data consistency
JSON parsing error special character processing (really speechless... Troubleshooting for a long time)
HiEngine:可媲美本地的云原生内存数据库引擎
Solve the error 1045 of Navicat creating local connection -access denied for user [email protected] (using password
About LDA model
Compilation principle reading notes (1/12)