|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.bstoi.poiparser.core.strategy.AbstractPoiFileParser<T>
nl.bstoi.poiparser.core.strategy.annotation.AnnotatedPoiFileParser<T>
public class AnnotatedPoiFileParser<T>
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotatedPoiFileParser()
public AnnotatedPoiFileParser(Map<String,Integer> columnFieldNameMapping)
columnFieldNameMapping -
public AnnotatedPoiFileParser(Map<String,Integer> columnFieldNameMapping,
Set<Integer> requiredColumnNumbers)
columnFieldNameMapping - | Method Detail |
|---|
public List<T> readExcelFile(File excelFile,
String sheetName,
Class<T> clazz)
throws IOException,
FileNotFoundException,
InstantiationException,
IllegalAccessException,
RequiredFieldPoiParserException,
ReadPoiParserException
readExcelFile in class AbstractPoiFileParser<T>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
AbstractPoiFileParser
readExcelFile in class AbstractPoiFileParser<T>IOException
FileNotFoundException
InstantiationException
IllegalAccessException
RequiredFieldPoiParserException
ReadPoiParserException
public List<T> readExcelFile(File excelFile,
String sheetName,
Class<T> clazz,
int startRow)
throws IOException,
FileNotFoundException,
InstantiationException,
IllegalAccessException,
RequiredFieldPoiParserException,
ReadPoiParserException
AbstractPoiFileParser
readExcelFile in class AbstractPoiFileParser<T>IOException
FileNotFoundException
InstantiationException
IllegalAccessException
RequiredFieldPoiParserException
ReadPoiParserException
public List<T> readExcelFile(InputStream inputStream,
String sheetName,
Class<T> clazz)
throws IOException,
FileNotFoundException,
InstantiationException,
IllegalAccessException,
RequiredFieldPoiParserException,
ReadPoiParserException
readExcelFile in class AbstractPoiFileParser<T>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
AbstractPoiFileParser
readExcelFile in class AbstractPoiFileParser<T>IOException
FileNotFoundException
InstantiationException
IllegalAccessException
RequiredFieldPoiParserException
ReadPoiParserException
public List<T> readExcelFile(InputStream inputStream,
String sheetName,
Class<T> clazz,
int startRow)
throws IOException,
FileNotFoundException,
InstantiationException,
IllegalAccessException,
RequiredFieldPoiParserException,
ReadPoiParserException
AbstractPoiFileParser
readExcelFile in class AbstractPoiFileParser<T>IOException
FileNotFoundException
InstantiationException
IllegalAccessException
RequiredFieldPoiParserException
ReadPoiParserException
public void writeExcelFile(OutputStream outputStream,
LinkedHashMap<String,List<T>> excelDataMap,
Class<T> clazz)
throws IOException,
InitialWritePoiParserException,
WritePoiParserException
writeExcelFile in class AbstractPoiFileParser<T>IOException
InitialWritePoiParserException
WritePoiParserExceptionprotected void parseExcelMappingForClass(Class clazz)
clazz - excelMapping -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||