Class CsvDataFileLoader

java.lang.Object
org.dbunit.util.fileloader.AbstractDataFileLoader
org.dbunit.util.fileloader.CsvDataFileLoader
All Implemented Interfaces:
DataFileLoader

public class CsvDataFileLoader extends AbstractDataFileLoader
Since:
invalid input: '<'dbunit-version>
Version:
$Revision$ $Date$
Author:
Jeff Jensen jeffjensen AT users.sourceforge.net, Last changed by: $Author$
  • Constructor Details

    • CsvDataFileLoader

      public CsvDataFileLoader()
      Create new instance.
    • CsvDataFileLoader

      public CsvDataFileLoader(Map ro)
      Create new instance with replacement objects.
      Parameters:
      replacementObjects - The replacement objects for use with ReplacementDataSet.
    • CsvDataFileLoader

      public CsvDataFileLoader(Map ro, Map rs)
      Create new instance with replacement objects and replacement substrings.
      Parameters:
      ro - The replacement objects for use with ReplacementDataSet.
      rs - The replacement substrings for use with ReplacementDataSet.
  • Method Details

    • loadDataSet

      public IDataSet loadDataSet(URL url) throws DataSetException, IOException
      Load the specified URL file into a dbUnit dataset. The type of dbUnit dataset created is delegated to the implementing subclass.
      Parameters:
      url - The dbUnit data file url.
      Returns:
      dbUnit dataset of the corresponding input file type.
      Throws:
      DataSetException - On data errors.
      IOException - On file errors.