I have a problem, I need to compare two inputstreams fast.
Today I have a function like this:
private boolean isEqual(InputStream i1, InputStream i2) thr
By far my favorite is to use the org.apache.commons.io.IOUtils helper class from the Apache Commons IO library:
org.apache.commons.io.IOUtils
IOUtils.contentEquals( is1, is2 );