return write(Thread.currentThread().getContextClassLoader()
.getResourceAsStream(template),os,beans);
}
public WriteStatus writePerSheet(OutputStream os, List<Map<String, Object>> beansList) {
WriteStatus writeStatus = new DefaultWriteStatus();
writeStatus.setStatus(WriteStatus.STATUS_SUCCESS);
if(bufferedTemplate == null) {
writeStatus.setStatus(WriteStatus.STATUS_READ_TEMPLATE_FILE_ERROR);
return writeStatus;
}
Workbook wb = createWookBook(new ByteArrayInputStream(bufferedTemplate), writeStatus);