public class AnnotatedPoiFileParser<T> extends AbstractPoiFileParser<T>
| Constructor and Description |
|---|
AnnotatedPoiFileParser()
Default constructor
|
AnnotatedPoiFileParser(java.util.Map<java.lang.String,java.lang.Integer> columnFieldNameMapping)
Use a different column field mapping and ignore the @Cell values in class.
|
AnnotatedPoiFileParser(java.util.Map<java.lang.String,java.lang.Integer> columnFieldNameMapping,
java.util.Set<java.lang.Integer> requiredColumnNumbers)
Use a different column field mapping and ignore the @Cell values in class.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
parseExcelMappingForClass(java.lang.Class clazz)
Recursive read of super classes that have excel parser information
|
java.util.List<T> |
readExcelFile(java.io.File excelFile,
java.lang.String sheetName,
java.lang.Class<T> clazz) |
java.util.List<T> |
readExcelFile(java.io.File excelFile,
java.lang.String sheetName,
java.lang.Class<T> clazz,
int startRow)
Read a excel file from start row to last row.
|
java.util.List<T> |
readExcelFile(java.io.File excelFile,
java.lang.String sheetName,
java.lang.Class<T> clazz,
int startRow,
int endRow)
Read a excel file from start row to end row
|
java.util.List<T> |
readExcelFile(java.io.InputStream inputStream,
java.lang.String sheetName,
java.lang.Class<T> clazz) |
java.util.List<T> |
readExcelFile(java.io.InputStream inputStream,
java.lang.String sheetName,
java.lang.Class<T> clazz,
int startRow)
Read a excel file input stream from given start row until last row
|
java.util.List<T> |
readExcelFile(java.io.InputStream inputStream,
java.lang.String sheetName,
java.lang.Class<T> clazz,
int startRow,
int endRow)
Read a excel file inputstream start row to end row
|
void |
writeExcelFile(java.io.OutputStream outputStream,
java.util.LinkedHashMap<java.lang.String,java.util.List<T>> excelDataMap,
java.lang.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(java.util.Map<java.lang.String,java.lang.Integer> columnFieldNameMapping)
columnFieldNameMapping - public AnnotatedPoiFileParser(java.util.Map<java.lang.String,java.lang.Integer> columnFieldNameMapping,
java.util.Set<java.lang.Integer> requiredColumnNumbers)
columnFieldNameMapping - public java.util.List<T> readExcelFile(java.io.File excelFile, java.lang.String sheetName, java.lang.Class<T> clazz) throws java.io.IOException, java.io.FileNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, RequiredFieldPoiParserException, ReadPoiParserException
readExcelFile in class AbstractPoiFileParser<T>java.io.IOExceptionjava.io.FileNotFoundExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionRequiredFieldPoiParserExceptionReadPoiParserExceptionpublic java.util.List<T> readExcelFile(java.io.File excelFile, java.lang.String sheetName, java.lang.Class<T> clazz, int startRow, int endRow) throws java.io.IOException, java.io.FileNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, RequiredFieldPoiParserException, ReadPoiParserException
AbstractPoiFileParserreadExcelFile in class AbstractPoiFileParser<T>java.io.IOExceptionjava.io.FileNotFoundExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionRequiredFieldPoiParserExceptionReadPoiParserExceptionpublic java.util.List<T> readExcelFile(java.io.File excelFile, java.lang.String sheetName, java.lang.Class<T> clazz, int startRow) throws java.io.IOException, java.io.FileNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, RequiredFieldPoiParserException, ReadPoiParserException
AbstractPoiFileParserreadExcelFile in class AbstractPoiFileParser<T>java.io.IOExceptionjava.io.FileNotFoundExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionRequiredFieldPoiParserExceptionReadPoiParserExceptionpublic java.util.List<T> readExcelFile(java.io.InputStream inputStream, java.lang.String sheetName, java.lang.Class<T> clazz) throws java.io.IOException, java.io.FileNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, RequiredFieldPoiParserException, ReadPoiParserException
readExcelFile in class AbstractPoiFileParser<T>java.io.IOExceptionjava.io.FileNotFoundExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionRequiredFieldPoiParserExceptionReadPoiParserExceptionpublic java.util.List<T> readExcelFile(java.io.InputStream inputStream, java.lang.String sheetName, java.lang.Class<T> clazz, int startRow, int endRow) throws java.io.IOException, java.io.FileNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, RequiredFieldPoiParserException, ReadPoiParserException
AbstractPoiFileParserreadExcelFile in class AbstractPoiFileParser<T>java.io.IOExceptionjava.io.FileNotFoundExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionRequiredFieldPoiParserExceptionReadPoiParserExceptionpublic java.util.List<T> readExcelFile(java.io.InputStream inputStream, java.lang.String sheetName, java.lang.Class<T> clazz, int startRow) throws java.io.IOException, java.io.FileNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, RequiredFieldPoiParserException, ReadPoiParserException
AbstractPoiFileParserreadExcelFile in class AbstractPoiFileParser<T>java.io.IOExceptionjava.io.FileNotFoundExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionRequiredFieldPoiParserExceptionReadPoiParserExceptionpublic void writeExcelFile(java.io.OutputStream outputStream,
java.util.LinkedHashMap<java.lang.String,java.util.List<T>> excelDataMap,
java.lang.Class<T> clazz)
throws java.io.IOException,
InitialWritePoiParserException,
WritePoiParserException
writeExcelFile in class AbstractPoiFileParser<T>java.io.IOExceptionInitialWritePoiParserExceptionWritePoiParserExceptionprotected void parseExcelMappingForClass(java.lang.Class clazz)
clazz - excelMapping - Copyright © 2011-2012 BSTOI.NL. All Rights Reserved.