@Beta public abstract class AbstractExcelConverter extends java.lang.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 java.lang.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 org.w3c.dom.Document |
getDocument() |
FontReplacer |
getFontReplacer() |
protected java.lang.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 java.lang.String getColumnName(int columnIndex)
isOutputColumnHeaders()
== truecolumnIndex
- 0-based column indexprotected abstract org.w3c.dom.Document getDocument()
public FontReplacer getFontReplacer()
protected java.lang.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 2018 The Apache Software Foundation or its licensors, as applicable.