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 Summary
Constructors Constructor Description CSVComparer(String regExSeperator, boolean firstLineHeaders, int ignoreFirstNumberColumns, boolean sortLines, boolean rejectZeroRows) -
Method Summary
Modifier and Type Method Description booleanareCSVFilesEqual(Path path1, Path path2, PrintStream messageStream)Are two CSV files equal?
-
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 CSVReaderExceptionAre two CSV files equal?- Parameters:
path1- path to first file to compare, without any lines having been already readpath2- path to second file to compare, without any lines having been already readmessageStream- 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.
-