Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
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.with("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.
Attachments
Attachments
Issue Links
- is related to
-
CODEC-173 DigestUtils: extend updateDigest() methods to create the final digest in various forms
- Resolved