fred
fred copied to clipboard
Simplify MultiHashInputStream and MultiHashOutputStream
Simplify MultiHashInputStream and MultiHashOutputStream by extracting their common multi-digest hashing code into a separate class.
Additionally, ensure that MultiHashInputStream does not advertise or implement mark/reset support (default delegated to the underlying InputStream by FilterInputStream), as this could lead to digesting the same bytes multiple times.