Package com.softwaremining.jcl
Class Diff
java.lang.Object
com.softwaremining.jcl.Diff
Simple utility to do a comparison between file.
This is used primarily in testing ... to programmatically ensure that data-migrated files are same as those on
mainframe.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
diff
(byte[] contents1, byte[] contents2) static int
diff
(char[] contents1, char[] contents2) static int
Compare characters within the file, and return the number of differencesstatic char[]
getFileAsChars
(String filename)
-
Constructor Details
-
Diff
public Diff()
-
-
Method Details
-
execute
Compare characters within the file, and return the number of differences- Parameters:
fileName1
-fileName2
-- Returns:
- : the number of differences
-
diff
public static int diff(char[] contents1, char[] contents2) -
diff
public static int diff(byte[] contents1, byte[] contents2) -
getFileAsChars
- Throws:
IOException
-