Excel文件读写组件 FastExcel

码农软件 · 软件分类 · Excel开发包 · 2019-09-17 11:28:47

软件介绍

FastExcel是一个采用纯java开发的excel文件读写组件。支持Excel'97(-2003)(BIFF8)文件格式。FastExcel主要关注excel内容的处理,所以FastExcel只能读取单元格的字符 信息,而其它属性如颜色,字体等就不支持了。由于不读取,解析和存储这些额外信息,因此FastExcel只需很小的内存。

示例代码:

public void testDump() throws ParserException, ReadException {
Workbook workBook;
workBook = FastExcel.createReadableWorkbook(new File("test.xls"));
workBook.open();
Sheet s;
s = workBook.getSheet(0);
System.out.println("SHEET:"+s);
for (int i = s.getFirstRow(); i <= s.getLastRow(); i++) {
System.out.print(i+"#");
for (int j = s.getFirstColumn(); j <=s.getLastColumn(); j++) {
System.out.print(","+s.getCell(i, j));
}
System.out.println();
}
workBook.close();
}

本文地址:https://codercto.com/soft/d/14786.html

The Mechanics of Web Handling

The Mechanics of Web Handling

David R. Roisum

This unique book covers many aspects of web handling for manufacturing, converting, and printing. The book is applicable to any web including paper, film, foil, nonwovens, and textiles. The Mech......一起来看看 《The Mechanics of Web Handling》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码