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