当前位置:网站首页>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()方法实例化。),接下来就是写,也不消说。
边栏推荐
- struct MySQL
- Compilation principle reading notes (1/12)
- Simply take stock reading notes (1/8)
- Annotation problem and hidden Markov model
- GPON technical standard analysis I
- Knowledge representation (KR)
- [hdu 2096] Xiaoming a+b
- 10 minute fitness method reading notes (2/5)
- Learn the memory management of JVM 02 - memory allocation of JVM
- I met Tencent in the morning and took out 38K, which showed me the basic smallpox
猜你喜欢

ZABBIX ODBC database monitoring

Taobao flag insertion remarks | logistics delivery interface

Ecplise development environment configuration and simple web project construction

MySQL transaction

Migrate data from Mysql to neo4j database

Get the variable address of structure member in C language

Hexadecimal conversion summary

Understand redis persistence mechanism in one article

激动人心!2022开放原子全球开源峰会报名火热开启!

C language structure is initialized as a function parameter
随机推荐
stm32和电机开发(从架构图到文档编写)
Time conversion error
Just a coincidence? The mysterious technology of apple ios16 is actually the same as that of Chinese enterprises five years ago!
Kotlin流程控制、循环
The relationship between the size change of characteristic graph and various parameters before and after DL convolution operation
Redis clean cache
Pytoch through datasets Imagefolder loads datasets directly from files
Array cyclic shift problem
Conversion du format de données GPS [facile à comprendre]
Simply take stock reading notes (3/8)
Pytorch two-layer loop to realize the segmentation of large pictures
JSON parsing error special character processing (really speechless... Troubleshooting for a long time)
10 minute fitness method reading notes (5/5)
2021.12.16-2021.12.20 empty four hand transaction records
Annotation problem and hidden Markov model
C alarm design
Anaconda creates a virtual environment and installs pytorch
Learn the memory management of JVM 02 - memory allocation of JVM
A new WiFi option for smart home -- the application of simplewifi in wireless smart home
Simply take stock reading notes (4/8)