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

com.poiji.save.OutputStreamWorkbookSaver Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
package com.poiji.save;

import com.poiji.option.PoijiOptions;
import java.io.OutputStream;
import java.util.Collection;
import java.util.stream.Stream;
import org.apache.poi.ss.usermodel.Workbook;

public class OutputStreamWorkbookSaver extends AbstractWorkbookSaver implements WorkbookSaver{

    private final OutputStream outputStream;

    public OutputStreamWorkbookSaver(
        final OutputStream outputStream, final MappedFields mappedFields, final PoijiOptions options
    ) {
        super(mappedFields, options);
        this.outputStream = outputStream;
    }

    @Override
    public  void save(final Stream data, final Workbook workbook) {
        super.save(data, workbook, outputStream);
    }

    @Override
    public   void save(final Collection data, final Workbook workbook) {
        super.save(data, workbook, outputStream);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy