List of utility methods to do File Compare
boolean | diff(File f1, File f2) diff if (f1 != null && !f1.exists()) f1 = null; if (f2 != null && !f2.exists()) f2 = null; if (f1 == f2 || f1 != null && f1.equals(f2)) return false; if (f1 == null) return f2 != null && f2.length() != 0; ... |
long | compareContents(File file1, File file2) Compares the contents of the two supplied normal files, byte by byte. Check.arg().validFile(file1); Check.arg().validFile(file2); InputStream in1 = null; InputStream in2 = null; try { in1 = new FileInputStream(file1); in2 = new FileInputStream(file2); int bufferSize = calcBufferSize(file1, file2); ... |