public abstract class AbstractExcelIndexSource extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
UNINIT |
Constructor and Description |
---|
AbstractExcelIndexSource() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.apache.poi.ss.usermodel.Workbook |
createWorkbook(InputStream input) |
protected void |
dealSheet(org.apache.poi.ss.usermodel.Sheet sheet,
String type,
List<Document> docs)
处理分页
|
List<Document> |
getDocument(String type,
String path,
InputStream input)
返回批量的索引文档列表
|
String |
getFieldName(int index) |
String[] |
getFieldNames() |
String |
getFields() |
int |
getFirstCol() |
int |
getFirstRow() |
int |
getLastCol() |
int |
getLastRow() |
TemplateDocumentCreator |
getTemplateDocumentCreator() |
void |
setFields(String fields) |
void |
setFirstCol(int firstCol) |
void |
setFirstRow(int firstRow) |
void |
setLastCol(int lastCol) |
void |
setLastRow(int lastRow) |
void |
setTemplateDocumentCreator(TemplateDocumentCreator templateDocumentCreator) |
protected static final int UNINIT
public String[] getFieldNames()
public String getFieldName(int index)
public String getFields()
public void setFields(String fields)
public int getFirstRow()
public void setFirstRow(int firstRow)
public int getLastRow()
public void setLastRow(int lastRow)
public int getFirstCol()
public void setFirstCol(int firstCol)
public int getLastCol()
public void setLastCol(int lastCol)
public TemplateDocumentCreator getTemplateDocumentCreator()
public void setTemplateDocumentCreator(TemplateDocumentCreator templateDocumentCreator)
public List<Document> getDocument(String type, String path, InputStream input)
type
- path
- input
- protected void dealSheet(org.apache.poi.ss.usermodel.Sheet sheet, String type, List<Document> docs)
sheet
- type
- docs
- protected abstract org.apache.poi.ss.usermodel.Workbook createWorkbook(InputStream input) throws IOException
IOException
Copyright © 2006–2018 TinyGroup. All rights reserved.