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

org.swiftboot.sheet.exp.Exporter Maven / Gradle / Ivy

There is a newer version: 2.4.7
Show newest version
package org.swiftboot.sheet.exp;

import org.swiftboot.sheet.meta.SheetMeta;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

/**
 * Exporter to export data from an annotated object or a Map in {@link SheetMeta} to a sheet file stream.
 *
 * @author swiftech
 */
public interface Exporter {

    /**
     * Export data from an annotated object to sheet file stream.
     *
     * @param dataObject
     * @param outputStream
     * @param 
     * @throws IOException
     */
     void export(Object dataObject, OutputStream outputStream) throws IOException;

    /**
     * Export data from an annotated object to sheet file stream which with everything from template sheet file.
     *
     * @param templateFileStream
     * @param dataObject
     * @param outputStream
     * @param 
     * @throws IOException
     */
     void export(InputStream templateFileStream, Object dataObject, OutputStream outputStream) throws IOException;

    /**
     * Export data from a map in {@link SheetMeta} to sheet file stream.
     *
     * @param exportMeta
     * @param outputStream
     * @throws IOException
     */
    void export(SheetMeta exportMeta, OutputStream outputStream) throws IOException;

    /**
     * Export data from a map in {@link SheetMeta} to sheet file stream which with everything from template sheet file.
     *
     * @param templateFileStream
     * @param exportMeta
     * @param outputStream
     * @throws IOException
     */
    void export(InputStream templateFileStream, SheetMeta exportMeta, OutputStream outputStream) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy