Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
The attached patch provides an overload for DigestUtils.updateDigest() that reads input data from an InputStream.
This brings updateDigest() into line with the other utility methods provided by DigestUtils, which provide overloads that accept input data as each of byte[], String, and InputStream.
The existing test cases provide full coverage for my changes, so I haven’t added any tests.
You can apply the change by applying the attached patch or by pulling from this branch on GitHub: https://github.com/djcsdy/commons-codec/tree/update-digest-from-stream