[
https://issues.apache.org/jira/browse/CODEC-168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary Gregory resolved CODEC-168.
--------------------------------
Resolution: Fixed
Fix Version/s: 1.8
Thank you Daniel.
Implemented differently from the patch.
{noformat}
commit -m "[CODEC-168] Reported by Daniel Cassidy: Add
DigestUtils.updateDigest(MessageDigest, InputStream). No need for additional
tests as the method is used by Codec itself."
C:/svn/org/apache/commons/trunks-proper/codec/src/main/java/org/apache/commons/codec/digest/DigestUtils.java
C:/svn/org/apache/commons/trunks-proper/codec/src/changes/changes.xml
Sending
C:/svn/org/apache/commons/trunks-proper/codec/src/changes/changes.xml
Sending
C:/svn/org/apache/commons/trunks-proper/codec/src/main/java/org/apache/commons/codec/digest/DigestUtils.java
Transmitting file data ...
Committed revision 1462710.
{noformat}
> Add DigestUtils.updateDigest(MessageDigest, InputStream)
> --------------------------------------------------------
>
> Key: CODEC-168
> URL: https://issues.apache.org/jira/browse/CODEC-168
> Project: Commons Codec
> Issue Type: Improvement
> Reporter: Daniel Cassidy
> Priority: Minor
> Fix For: 1.8
>
> Attachments: update-digest-from-stream.patch
>
>
> 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
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira