org.cassandraunit.dataset.xml.FileXmlDataSet Maven / Gradle / Ivy
package org.cassandraunit.dataset.xml;
import org.cassandraunit.dataset.DataSet;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
public class FileXmlDataSet extends AbstractXmlDataSet implements DataSet {
public FileXmlDataSet(String dataSetLocation) {
super(dataSetLocation);
}
@Override
protected InputStream getInputDataSetLocation(String dataSetLocation) {
if (dataSetLocation == null) {
return null;
}
try {
return new FileInputStream(dataSetLocation);
} catch (FileNotFoundException e) {
return null;
}
}
}