com.agimatec.database.DataSetFlatXML Maven / Gradle / Ivy
package com.agimatec.database;
import org.dbunit.dataset.DataSetException;
import org.dbunit.dataset.IDataSet;
import org.dbunit.dataset.xml.FlatXmlDataSet;
import org.dbunit.dataset.xml.FlatXmlDataSetBuilder;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
/**
* Description:
* User: roman.stumm
* Date: 01.06.2007
* Time: 14:15:29
* Copyright: Agimatec GmbH
*/
public class DataSetFlatXML extends DataSet {
protected DataSetFlatXML(String dataFile) {
super(dataFile);
}
public IDataSet load(InputStream in) throws DataSetException, IOException {
FlatXmlDataSetBuilder builder = new FlatXmlDataSetBuilder();
return builder.build(in);
}
public void write(IDataSet set, OutputStream out)
throws DataSetException, IOException {
FlatXmlDataSet.write(set, out);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy