private static boolean compare(final Reader reader1, final Reader reader2, final boolean ignoreWhitespace)
            throws IOException {
        int c1 = 0;
        int c2 = 0;
        while (c1 != -1 && c2 != -1) {
            c1 = nextChar(reader1, ignoreWhitespace);
            c2 = nextChar(reader2, ignoreWhitespace);
            if (c1 != c2) {
                return false;
            }
        }

        return true;
    }
Generate a unified diff of the two files using the specified number of lines of context.
The diff output is sent to system out in coloured form.

@return True if the files are the same
stroom-test-common/src/main/java/stroom/test/common/ComparisonHelper.java