Uploaded image for project: 'Commons Codec'
  1. Commons Codec
  2. CODEC-168

Add DigestUtils.updateDigest(MessageDigest, InputStream)

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.8
    • Labels:
      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

        Attachments

        1. update-digest-from-stream.patch
          4 kB
          Daniel Cassidy

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              djcsdy Daniel Cassidy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: