You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2016/05/17 02:34:13 UTC

[jira] [Created] (CODEC-220) Possible more OO-like approach to DigestUtils

Sebb created CODEC-220:
--------------------------

             Summary: Possible more OO-like approach to DigestUtils
                 Key: CODEC-220
                 URL: https://issues.apache.org/jira/browse/CODEC-220
             Project: Commons Codec
          Issue Type: Improvement
            Reporter: Sebb


DigestUtils is starting to get a bit unwieldy with so many similar static methods.

One approach would be to use a Fluent approach (method chaining).

e.g. DigestUtils.MDA("My-Digest").digestHex(File f);

There would only need to be digest,digestHex and update instance methods for the different input types, currently byte, ByteBuffer, InputStream, File.
Whereas at present these are repeated for each digest type.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)