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

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

The newest version!
package io.robe.convert.excel.exporter;


import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Workbook;

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

public class XLSExporter extends ExcelExporter {
    boolean isFirstRowHeader = false;

    public XLSExporter(Class dataClass) {
        this(dataClass, false);
    }

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


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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy