Class PoiXssfbProvider
java.lang.Object
com.northconcepts.datapipeline.excel.PoiXssfbProvider
- All Implemented Interfaces:
DataExceptionContributor
Read-only provider for
ExcelDocument.ProviderType.POI_XSSFB: reads binary .xlsb sheets from a File,
returning each cell as its formatted string.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddExceptionProperties(DataException exception) Adds this object's current state to aDataException.voidclose()final voidprotected voidvoidfinal voidprotected voidintgetCellCount(int rowIndex) protected ExcelReaderprotected ExcelWriterintintString[]voidbooleanbooleanbooleanbooleanbooleanvoidvoidopenWorkbook(File file) voidopenWorkbook(InputStream inputStream) voidvoidsaveWorkbook(File file) voidsaveWorkbook(OutputStream outputStream) voidsetAutoFilter(int firstRow, int firstColumn) voidsetAutofitColumns(int firstColumnIndex, int[] columnCharacterCount) com.northconcepts.datapipeline.excel.ProvidersetEvaluateExpressions(boolean evaluateExpressions) protected voidsetExcelReader(ExcelReader excelReader) protected voidsetExcelWriter(ExcelWriter excelWriter) protected voidprotected voidsetFreezePaneImpl(int columns, int rows) final voidstartReading(int sheetIndex) final voidstartReading(String sheetName) protected voidstartReadingImpl(int sheetIndex) protected voidstartReadingImpl(String sheetName) voidstartRecord(Record record, int currentRowIndex) final voidstartWriting(String sheetName, int sheetIndex) protected voidstartWritingImpl(String sheetName, int sheetIndex) voidwriteField(int rowIndex, int columnIndex, int recordIndex, int fieldIndex, Field field) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.northconcepts.datapipeline.core.DataExceptionContributor
addExceptionProperties, exception, exception, exception
-
Field Details
-
fieldMetadata
-
-
Constructor Details
-
PoiXssfbProvider
public PoiXssfbProvider()
-
-
Method Details
-
openWorkbook
- Throws:
Throwable
-
openWorkbook
-
newWorkbook
public void newWorkbook() -
close
public void close() -
saveWorkbook
- Throws:
Throwable
-
startReadingImpl
-
startReadingImpl
protected void startReadingImpl(int sheetIndex) -
readField
-
endReadingImpl
protected void endReadingImpl() -
startWritingImpl
-
writeField
-
setAutofitColumns
public void setAutofitColumns(int firstColumnIndex, int[] columnCharacterCount) -
endWritingImpl
protected void endWritingImpl() -
getLastRowIndex
public int getLastRowIndex() -
getLastColumnIndex
public int getLastColumnIndex() -
getCellCount
public int getCellCount(int rowIndex) -
isDataFormatSupported
public boolean isDataFormatSupported() -
setAutoFilter
public void setAutoFilter(int firstRow, int firstColumn) -
getSheetNames
-
isFreezePaneSupported
public boolean isFreezePaneSupported() -
isHyperlinkSupported
public boolean isHyperlinkSupported() -
isCellStyleSupported
public boolean isCellStyleSupported() -
isEvaluateExpressions
public boolean isEvaluateExpressions() -
setEvaluateExpressions
public com.northconcepts.datapipeline.excel.Provider setEvaluateExpressions(boolean evaluateExpressions) -
saveWorkbook
- Throws:
Throwable
-
startReading
-
startReading
public final void startReading(int sheetIndex) -
endReading
public final void endReading() -
startWriting
-
endWriting
public final void endWriting() -
setFreezePane
protected void setFreezePane() -
setFreezePaneImpl
protected void setFreezePaneImpl(int columns, int rows) -
startRecord
-
endRecord
-
setExcelReader
-
getExcelReader
-
setExcelWriter
-
getExcelWriter
-
initStyles
public void initStyles() -
addExceptionProperties
Description copied from interface:DataExceptionContributorAdds this object's current state to aDataException. Since this method is called whenever an exception is thrown, subclasses should override it to add their specific information.- Specified by:
addExceptionPropertiesin interfaceDataExceptionContributor
-