| 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 Diffref - 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 DiffrefFile - first file to compare -- refpassFile - second file to compare -- goldendiffFile - difference file, caller can pass null value, when results are not needed.IOExceptionBuilt on June 20 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.