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

Add DigestUtils.updateDigest(MessageDigest, InputStream)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.8
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: