commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Donaghy (JIRA)" <>
Subject [jira] [Commented] (CODEC-193) Support java.nio.ByteBuffer in e.g. DigestUtils
Date Mon, 10 Nov 2014 13:44:34 GMT


Michael Donaghy commented on CODEC-193:

I didn't; I used {{MessageDigest}} directly in my code, as this was less complex than wrapping
my {{ByteBuffer}} as something else. But I'd prefer to use the higher-level {{DigestUtils}}

> Support java.nio.ByteBuffer in e.g. DigestUtils
> -----------------------------------------------
>                 Key: CODEC-193
>                 URL:
>             Project: Commons Codec
>          Issue Type: Improvement
>            Reporter: Michael Donaghy
>            Priority: Minor
> The underlying {{MessageDigest}} API provides an {{update(ByteBuffer)}} method. It would
be great to have support for this in {{DigestUtils}} so I can call e.g. {{md5Hex(ByteBuffer)}},
as it is surprisingly hard to treat a {{ByteBuffer}} as e.g. an {{InputStream}}.

This message was sent by Atlassian JIRA

View raw message