Package net.sf.jasperreports.data.xls
Class AbstractXlsDataAdapterService
- java.lang.Object
-
- net.sf.jasperreports.dataadapters.AbstractDataAdapterService
-
- net.sf.jasperreports.data.xls.AbstractXlsDataAdapterService
-
- All Implemented Interfaces:
DataAdapterService
,ParameterContributor
,Designated
- Direct Known Subclasses:
ExcelDataAdapterService
,XlsDataAdapterService
,XlsxDataAdapterService
public abstract class AbstractXlsDataAdapterService extends AbstractDataAdapterService implements Designated
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description protected DataFileStream
dataStream
static String
SERVICE_DESIGNATION
-
Fields inherited from class net.sf.jasperreports.dataadapters.AbstractDataAdapterService
SECRETS_CATEGORY
-
-
Constructor Summary
Constructors Constructor Description AbstractXlsDataAdapterService(ParameterContributorContext paramContribContext, XlsDataAdapter xlsDataAdapter)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
contributeParameters(Map<String,Object> parameters)
void
dispose()
String
getDesignation()
XlsDataAdapter
getXlsDataAdapter()
protected abstract AbstractXlsDataSource
getXlsDataSource()
protected void
setupColumns(XlsDataAdapter xlsDataAdapter, String[] names, int[] indexes)
protected void
setupColumns(XlsDataAdapter xlsDataAdapter, String[] names, Integer[] indexes)
-
Methods inherited from class net.sf.jasperreports.dataadapters.AbstractDataAdapterService
getDataAdapter, getJasperReportsContext, getName, getParameterContributorContext, setDataAdapter, setName, test
-
-
-
-
Field Detail
-
SERVICE_DESIGNATION
public static final String SERVICE_DESIGNATION
- See Also:
- Constant Field Values
-
dataStream
protected DataFileStream dataStream
-
-
Constructor Detail
-
AbstractXlsDataAdapterService
public AbstractXlsDataAdapterService(ParameterContributorContext paramContribContext, XlsDataAdapter xlsDataAdapter)
-
-
Method Detail
-
getXlsDataAdapter
public XlsDataAdapter getXlsDataAdapter()
-
contributeParameters
public void contributeParameters(Map<String,Object> parameters) throws JRException
- Specified by:
contributeParameters
in interfaceParameterContributor
- Specified by:
contributeParameters
in classAbstractDataAdapterService
- Throws:
JRException
-
getXlsDataSource
protected abstract AbstractXlsDataSource getXlsDataSource() throws JRException
- Throws:
JRException
-
setupColumns
protected void setupColumns(XlsDataAdapter xlsDataAdapter, String[] names, int[] indexes)
-
setupColumns
protected void setupColumns(XlsDataAdapter xlsDataAdapter, String[] names, Integer[] indexes)
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceParameterContributor
- Overrides:
dispose
in classAbstractDataAdapterService
-
getDesignation
public String getDesignation()
- Specified by:
getDesignation
in interfaceDesignated
-
-