xxl.mathematica.io.excel.JxlExcel Maven / Gradle / Ivy
package xxl.mathematica.io.excel;
import jxl.*;
import jxl.write.Label;
import jxl.write.WritableSheet;
import jxl.write.WritableWorkbook;
import xxl.mathematica.list.First;
import xxl.mathematica.list.Position;
import xxl.mathematica.list.Select;
import java.io.File;
import java.io.FileInputStream;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* jxl实现,可用于android
*/
final class JxlExcel implements IExcel {
private JxlExcel() {
}
public static JxlExcel getInstance() {
return Holder.jxlExcel;
}
@Override
public String exportExcel(String file, boolean withAnnotationQ, List> sheets) throws Exception {
WritableWorkbook workbook = Workbook.createWorkbook(new File(file));
for (int k = 0; k < sheets.size(); k++) {
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy