org.swiftboot.sheet.imp.Importer Maven / Gradle / Ivy
package org.swiftboot.sheet.imp;
import org.swiftboot.sheet.meta.SheetMeta;
import java.io.IOException;
import java.io.InputStream;
import java.util.Map;
/**
* Importer to import data from sheet file stream to a Map or an annotated object.
*
* @author swiftech
*/
public interface Importer {
/**
* Import data from sheet file stream to an annotated object
*
* @param templateFileStream
* @param resultClass
* @param
* @return
* @throws IOException
*/
T importFromStream(InputStream templateFileStream, Class resultClass) throws IOException;
/**
* Import data from sheet file stream to a Map
*
* @param templateFileStream
* @param meta Meta list for each parameters to import.
* @return
* @throws IOException
*/
Map importFromStream(InputStream templateFileStream, SheetMeta meta) throws IOException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy