List of utility methods to do InputStream Compare
boolean | binaryStreamEquals(InputStream left, InputStream right) Performs a byte-level comparison between two streams. try { if (left == right) { return true; byte[] leftBuffer = new byte[BUFFER_SIZE]; byte[] rightBuffer = new byte[BUFFER_SIZE]; while (true) { int leftReadCount = left.read(leftBuffer); ... |
boolean | binaryStreamEquals(InputStream left, InputStream right) Performs a byte-level comparison between two streams. try (InputStream first = left; InputStream second = right) { if (first == second) { return true; return compareStreamsInternal(first, second); |
boolean | inputStreamEquals(InputStream is1, InputStream is2) input Stream Equals if (is1 == is2) return true; if (is1 == null && is2 == null) return true; if (is1 == null || is2 == null) return false; try { int read1 = -1; ... |