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 Art and Science of Java

The Art and Science of Java

Eric Roberts / Addison-Wesley / 2007-3-1 / USD 121.60

In The Art and Science of Java, Stanford professor and well-known leader in CS Education Eric Roberts emphasizes the student-friendly exposition that led to the success of The Art and Science of C. By......一起来看看 《The Art and Science of Java》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

URL 编码/解码
URL 编码/解码

URL 编码/解码

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具