Modifier and Type | Field and Description |
---|---|
static int |
CONTEXT |
Constructor and Description |
---|
LineDiff() |
LineDiff(boolean ignoreCase) |
LineDiff(boolean ignoreCase,
boolean ignoreEmptyLines) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
compareLines(String l1,
String l2) |
boolean |
diff(File refFile,
File passFile,
File diffFile) |
boolean |
diff(String ref,
String pass,
String diff) |
boolean |
getIgnoreCase() |
int |
getNContextLines() |
public LineDiff()
public LineDiff(boolean ignoreCase)
public LineDiff(boolean ignoreCase, boolean ignoreEmptyLines)
public boolean getIgnoreCase()
protected boolean compareLines(String l1, String l2)
l1
- first line to comparel2
- second line to comparepublic int getNContextLines()
public boolean diff(String ref, String pass, String diff) throws IOException
diff
in interface Diff
ref
- first file to comparepass
- second file to comparediff
- difference file, caller can pass null value, when results are not needed.IOException
- when readin of files failspublic boolean diff(File refFile, File passFile, File diffFile) throws IOException
diff
in interface Diff
refFile
- first file to compare -- refpassFile
- second file to compare -- goldendiffFile
- difference file, caller can pass null value, when results are not needed.IOException
- if an I/O exception occurs