当前位置:网站首页>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()方法实例化。),接下来就是写,也不消说。
边栏推荐
- Learning items
- NFT: how to make money with unique assets?
- Wechat enterprise payment to change access, open quickly
- [figure neural network] GNN from entry to mastery
- How can labels/legends be added for all chart types in chart. js (chartjs.org)?
- Constructing expression binary tree with prefix expression
- Oppo Xiaobu launched Obert, a large pre training model, and promoted to the top of kgclue
- Learn memory management of JVM 01 - first memory
- Resnet+attention project complete code learning
- A possible investment strategy and a possible fuzzy fast stock valuation method
猜你喜欢
Transactions from December 29, 2021 to January 4, 2022
Resnet+attention project complete code learning
Distributed cache architecture - cache avalanche & penetration & hit rate
Transactions on December 23, 2021
Learn memory management of JVM 01 - first memory
JDBC exercise - query data encapsulated into object return & simple login demo
Making and using the cutting tool of TTF font library
JDBC -- extract JDBC tool classes
Simply take stock reading notes (3/8)
VoneDAO破解组织发展效能难题
随机推荐
Redis highly available sentinel cluster
Summary of C language learning problems (VS)
前几年外包干了四年,秋招感觉人生就这样了..
UNIX socket advanced learning diary -ipv4-ipv6 interoperability
OPPO小布推出预训练大模型OBERT,晋升KgCLUE榜首
Redis's memory elimination mechanism, read this article is enough.
ZABBIX monitors mongodb templates and configuration operations
Pinduoduo flag insertion remarks API
About cache exceptions: solutions for cache avalanche, breakdown, and penetration
JDBC -- use JDBC connection to operate MySQL database
Time conversion error
Distributed solution - distributed lock solution - redis based distributed lock implementation
Difference between JUnit theories and parameterized tests
Distributed cache architecture - cache avalanche & penetration & hit rate
Learn JVM garbage collection 02 - a brief introduction to the reference and recycling method area
Learn garbage collection 01 of JVM -- garbage collection for the first time and life and death judgment
Redis clean cache
Yum only downloads the RPM package of the software to the specified directory without installing it
Using MySQL in docker
Pytoch loads the initialization V3 pre training model and reports an error