Class CSVComparer

Object
org.anchoranalysis.test.image.csv.CSVComparer

public class CSVComparer
extends Object
Compares two CSV files to determine if they are identical or not.
  • Constructor Details

    • CSVComparer

      public CSVComparer​(String regExSeperator, boolean firstLineHeaders, int ignoreFirstNumberColumns, boolean sortLines, boolean rejectZeroRows)
  • Method Details

    • areCSVFilesEqual

      public boolean areCSVFilesEqual​(Path path1, Path path2, PrintStream messageStream) throws CSVReaderException
      Are two CSV files equal?
      Parameters:
      path1 - path to first file to compare, without any lines having been already read
      path2 - path to second file to compare, without any lines having been already read
      messageStream - if CSV files aren't equal, additional explanation messages are printed here
      Returns:
      true iff the two files are considered equal.
      Throws:
      CSVReaderException - if something goes wrong.