static String |
MD5CheckSum.md5Hex(InputStream originalInStream,
MD5CheckSum.InputStreamCallback inputStreamCallback)
Convenience method that calculates MD5 checksum based on inputStream while still allowing other code to consume
same data from input stream given by inputStreamCallback.
MD5CheckSum.MD5ReaderThread consumes originalInStream to calculate MD5 checksum based on it, but it writes
all original bytes to pipedOutStream that is made available as InputStream to the
inputStreamCallback which can handle given
input stream as if it would read originalInStream |