org.dbunit.dataset.excel
Class XlsDataSet
java.lang.Object
org.dbunit.dataset.AbstractDataSet
org.dbunit.dataset.excel.XlsDataSet
- All Implemented Interfaces:
- IDataSet
public class XlsDataSet
- extends AbstractDataSet
This dataset implementation can read and write MS Excel documents. Each
sheet represents a table. The first row of a sheet defines the columns names
and remaining rows contains the data.
- Since:
- Feb 21, 2003
- Version:
- $Revision: 554 $
- Author:
- Manuel Laflamme
Constructor Summary |
XlsDataSet(File file)
Creates a new XlsDataSet object that loads the specified Excel document. |
XlsDataSet(InputStream in)
Creates a new XlsDataSet object that loads the specified Excel document. |
XlsDataSet
public XlsDataSet(File file)
throws IOException,
DataSetException
- Creates a new XlsDataSet object that loads the specified Excel document.
- Throws:
IOException
DataSetException
XlsDataSet
public XlsDataSet(InputStream in)
throws IOException,
DataSetException
- Creates a new XlsDataSet object that loads the specified Excel document.
- Throws:
IOException
DataSetException
write
public static void write(IDataSet dataSet,
OutputStream out)
throws IOException,
DataSetException
- Write the specified dataset to the specified Excel document.
- Throws:
IOException
DataSetException
createIterator
protected ITableIterator createIterator(boolean reversed)
throws DataSetException
- Specified by:
createIterator
in class AbstractDataSet
- Throws:
DataSetException
Copyright © 2002-2011. All Rights Reserved.