By far my favorite is to use the org.apache.commons.io.IOUtils helper class from the Apache Commons IO library:
IOUtils.contentEquals( is1, is2 );
By far my favorite is to use the org.apache.commons.io.IOUtils helper class from the Apache Commons IO library:
IOUtils.contentEquals( is1, is2 );