Constructor and Description |
---|
SimpleDiff()
Creates new SimpleDiff
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
binaryCompare(File first,
File second,
File diff) |
boolean |
diff(File first,
File second,
File diff) |
boolean |
diff(String first,
String second,
String diff) |
protected boolean |
isBinaryFile(File file) |
protected boolean |
textualCompare(File first,
File second,
File diff) |
public boolean diff(File first, File second, File diff) throws IOException
diff
in interface Diff
first
- first file to comparesecond
- second file to comparediff
- difference fileIOException
- if an I/O exception occurspublic boolean diff(String first, String second, String diff) throws IOException
diff
in interface Diff
first
- first file to comparesecond
- second file to comparediff
- difference fileIOException
- if an I/O exception occursprotected boolean isBinaryFile(File file) throws IOException
IOException
protected boolean binaryCompare(File first, File second, File diff) throws IOException
IOException
protected boolean textualCompare(File first, File second, File diff) throws IOException
IOException