public class AnnotatedPoiFileParser<T> extends AbstractPoiFileParser<T>
| Constructor and Description |
|---|
AnnotatedPoiFileParser()
Default constructor
|
AnnotatedPoiFileParser(Map<String,Integer> columnFieldNameMapping)
Use a different column field mapping and ignore the @Cell values in class.
|
AnnotatedPoiFileParser(Map<String,Integer> columnFieldNameMapping,
Set<Integer> requiredColumnNumbers)
Use a different column field mapping and ignore the @Cell values in class.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
parseExcelMappingForClass(Class clazz)
Recursive read of super classes that have excel parser information
|
List<T> |
readExcelFile(File excelFile,
String sheetName,
Class<T> clazz) |
List<T> |
readExcelFile(File excelFile,
String sheetName,
Class<T> clazz,
int startRow)
Read a excel file from start row to last row.
|
List<T> |
readExcelFile(File excelFile,
String sheetName,
Class<T> clazz,
int startRow,
int endRow)
Read a excel file from start row to end row
|
List<T> |
readExcelFile(InputStream inputStream,
String sheetName,
Class<T> clazz) |
List<T> |
readExcelFile(InputStream inputStream,
String sheetName,
Class<T> clazz,
int startRow)
Read a excel file input stream from given start row until last row
|
List<T> |
readExcelFile(InputStream inputStream,
String sheetName,
Class<T> clazz,
int startRow,
int endRow)
Read a excel file inputstream start row to end row
|
void |
writeExcelFile(OutputStream outputStream,
LinkedHashMap<String,List<T>> excelDataMap,
Class<T> clazz) |
addColumnFieldNameMapping, addColumnFieldRegex, addReadIgnoreColumn, addRequiredField, addWriteIgnoreColumn, getColumnFieldNameMapping, getDefaultConverterFactory, getHeaderFieldNameTranslationMapping, getReadIgnoreColumns, getWriteIgnoreColumns, ignoreRow, isEmptyRow, isEmptyValue, isIgnoreEmptyRows, isIgnoreFirstRow, isRemoveWriteIgnoreColumns, readField, readRow, readSheet, readSheet, readSheet, remapColumnFieldMapForWriting, setHeaderFieldNameTranslationMapping, setIgnoreEmptyRows, setIgnoreFirstRow, setRemoveWriteIgnoreColumns, validateColumnFieldMapForWriting, writeCell, writeHeaderRow, writeRow, writeSheet, writeWorkbookpublic AnnotatedPoiFileParser()
public AnnotatedPoiFileParser(Map<String,Integer> columnFieldNameMapping)
columnFieldNameMapping - public List<T> readExcelFile(File excelFile, String sheetName, Class<T> clazz) throws IOException, FileNotFoundException, InstantiationException, IllegalAccessException, RequiredFieldPoiParserException, ReadPoiParserException
public List<T> readExcelFile(File excelFile, String sheetName, Class<T> clazz, int startRow, int endRow) throws IOException, FileNotFoundException, InstantiationException, IllegalAccessException, RequiredFieldPoiParserException, ReadPoiParserException
AbstractPoiFileParserreadExcelFile in class AbstractPoiFileParser<T>IOExceptionFileNotFoundExceptionInstantiationExceptionIllegalAccessExceptionRequiredFieldPoiParserExceptionReadPoiParserExceptionpublic List<T> readExcelFile(File excelFile, String sheetName, Class<T> clazz, int startRow) throws IOException, FileNotFoundException, InstantiationException, IllegalAccessException, RequiredFieldPoiParserException, ReadPoiParserException
AbstractPoiFileParserreadExcelFile in class AbstractPoiFileParser<T>IOExceptionFileNotFoundExceptionInstantiationExceptionIllegalAccessExceptionRequiredFieldPoiParserExceptionReadPoiParserExceptionpublic List<T> readExcelFile(InputStream inputStream, String sheetName, Class<T> clazz) throws IOException, FileNotFoundException, InstantiationException, IllegalAccessException, RequiredFieldPoiParserException, ReadPoiParserException
public List<T> readExcelFile(InputStream inputStream, String sheetName, Class<T> clazz, int startRow, int endRow) throws IOException, FileNotFoundException, InstantiationException, IllegalAccessException, RequiredFieldPoiParserException, ReadPoiParserException
AbstractPoiFileParserreadExcelFile in class AbstractPoiFileParser<T>IOExceptionFileNotFoundExceptionInstantiationExceptionIllegalAccessExceptionRequiredFieldPoiParserExceptionReadPoiParserExceptionpublic List<T> readExcelFile(InputStream inputStream, String sheetName, Class<T> clazz, int startRow) throws IOException, FileNotFoundException, InstantiationException, IllegalAccessException, RequiredFieldPoiParserException, ReadPoiParserException
AbstractPoiFileParserreadExcelFile in class AbstractPoiFileParser<T>IOExceptionFileNotFoundExceptionInstantiationExceptionIllegalAccessExceptionRequiredFieldPoiParserExceptionReadPoiParserExceptionpublic void writeExcelFile(OutputStream outputStream, LinkedHashMap<String,List<T>> excelDataMap, Class<T> clazz) throws IOException, InitialWritePoiParserException, WritePoiParserException
writeExcelFile in class AbstractPoiFileParser<T>IOExceptionInitialWritePoiParserExceptionWritePoiParserExceptionprotected void parseExcelMappingForClass(Class clazz)
clazz - excelMapping - Copyright © 2011-2012 BSTOI.NL. All Rights Reserved.