All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.robe.convert.excel.exporter.XLSXExporter Maven / Gradle / Ivy

There is a newer version: 0.5.0.0-1039
Show newest version
package io.robe.convert.excel.exporter;

import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

import java.io.IOException;
import java.io.OutputStream;
import java.util.Iterator;

public class XLSXExporter extends ExcelExporter {


    public XLSXExporter(Class dataClass) {
        super(dataClass);
    }

    public XLSXExporter(Class dataClass, boolean hasTitleRow) {
        super(dataClass, hasTitleRow);
    }

    @Override
    public void exportStream(OutputStream outputStream, Iterator iterator) throws IOException, ClassNotFoundException, IllegalAccessException {
        Workbook workbook = new XSSFWorkbook();
        exportStream(outputStream, iterator, workbook);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy