@Beta public abstract class AbstractExcelConverter extends Object
ExcelToFoConverter
and ExcelToHtmlConverter
AbstractWordConverter
Modifier and Type | Field and Description |
---|---|
protected HSSFDataFormatter |
_formatter |
Constructor and Description |
---|
AbstractExcelConverter() |
Modifier and Type | Method and Description |
---|---|
protected String |
getColumnName(int columnIndex)
Generates name for output as column header in case
isOutputColumnHeaders() == true |
protected static int |
getColumnWidth(HSSFSheet sheet,
int columnIndex) |
protected static int |
getDefaultColumnWidth(HSSFSheet sheet) |
protected abstract Document |
getDocument() |
FontReplacer |
getFontReplacer() |
protected String |
getRowName(HSSFRow row)
Generates name for output as row number in case
isOutputRowNumbers() == true |
boolean |
isOutputColumnHeaders() |
boolean |
isOutputHiddenColumns() |
boolean |
isOutputHiddenRows() |
boolean |
isOutputLeadingSpacesAsNonBreaking() |
boolean |
isOutputRowNumbers() |
protected boolean |
isTextEmpty(HSSFCell cell) |
void |
setFontReplacer(FontReplacer fontReplacer) |
void |
setOutputColumnHeaders(boolean outputColumnHeaders) |
void |
setOutputHiddenColumns(boolean outputZeroWidthColumns) |
void |
setOutputHiddenRows(boolean outputZeroHeightRows) |
void |
setOutputLeadingSpacesAsNonBreaking(boolean outputPrePostSpacesAsNonBreaking) |
void |
setOutputRowNumbers(boolean outputRowNumbers) |
protected final HSSFDataFormatter _formatter
protected static int getColumnWidth(HSSFSheet sheet, int columnIndex)
protected static int getDefaultColumnWidth(HSSFSheet sheet)
protected String getColumnName(int columnIndex)
isOutputColumnHeaders()
== truecolumnIndex
- 0-based column indexprotected abstract Document getDocument()
public FontReplacer getFontReplacer()
protected String getRowName(HSSFRow row)
isOutputRowNumbers()
== truepublic boolean isOutputColumnHeaders()
public boolean isOutputHiddenColumns()
public boolean isOutputHiddenRows()
public boolean isOutputLeadingSpacesAsNonBreaking()
public boolean isOutputRowNumbers()
protected boolean isTextEmpty(HSSFCell cell)
public void setFontReplacer(FontReplacer fontReplacer)
public void setOutputColumnHeaders(boolean outputColumnHeaders)
public void setOutputHiddenColumns(boolean outputZeroWidthColumns)
public void setOutputHiddenRows(boolean outputZeroHeightRows)
public void setOutputLeadingSpacesAsNonBreaking(boolean outputPrePostSpacesAsNonBreaking)
public void setOutputRowNumbers(boolean outputRowNumbers)
Copyright © 2020. All rights reserved.