当前位置:网站首页>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()方法实例化。),接下来就是写,也不消说。
边栏推荐
- Kotlin process control and circulation
- Time conversion error
- 前几年外包干了四年,秋招感觉人生就这样了..
- Knowledge representation (KR)
- Anaconda creates a virtual environment and installs pytorch
- Add a new cloud disk to Huawei virtual machine
- Pytoch implements tf Functions of the gather() function
- ZABBIX monitors mongodb (template and deployment operations)
- Redis highly available slice cluster
- Redis highly available sentinel mechanism
猜你喜欢
Taobao, pinduoduo, jd.com, Doudian order & Flag insertion remarks API solution
Pytoch implements tf Functions of the gather() function
Solve the problem of cache and database double write data consistency
Resnet+attention project complete code learning
UNIX socket advanced learning diary -ipv4-ipv6 interoperability
Kotlin variable
UNIX socket advanced learning diary - advanced i/o functions
2021.12.16-2021.12.20 empty four hand transaction records
Taobao flag insertion remarks | logistics delivery interface
Iterator details in list... Interview pits
随机推荐
How can labels/legends be added for all chart types in chart. js (chartjs.org)?
Compilation principle reading notes (1/12)
Implementing Yang Hui triangle with cyclic queue C language
GNN(pytorch-geometric)
Volatile instruction rearrangement and why instruction rearrangement is prohibited
JDBC -- extract JDBC tool classes
Solve the problem of cache and database double write data consistency
Pinduoduo flag insertion remarks API
Taobao, pinduoduo, jd.com, Doudian order & Flag insertion remarks API solution
ZABBIX customized monitoring disk IO performance
Pytoch through datasets Imagefolder loads datasets directly from files
View and terminate the executing thread in MySQL
Leetcode-1. Sum of two numbers (Application of hash table)
Simply take stock reading notes (4/8)
MySQL index - extended data
Instance + source code = see through 128 traps
Resnet18 actual battle Baoke dream spirit
在家庭智能照明中应用的测距传感芯片4530A
Common commands and basic operations of Apache Phoenix
A new WiFi option for smart home -- the application of simplewifi in wireless smart home