Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 56BC52009D9 for ; Thu, 19 May 2016 17:40:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 537F5160A00; Thu, 19 May 2016 15:40:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C4BBF1609AE for ; Thu, 19 May 2016 17:40:13 +0200 (CEST) Received: (qmail 18361 invoked by uid 500); 19 May 2016 15:40:13 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 18342 invoked by uid 99); 19 May 2016 15:40:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 May 2016 15:40:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CB9DD2C1F58 for ; Thu, 19 May 2016 15:40:12 +0000 (UTC) Date: Thu, 19 May 2016 15:40:12 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CODEC-220) Fluent interface for DigestUtils MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 19 May 2016 15:40:14 -0000 [ https://issues.apache.org/jira/browse/CODEC-220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebb updated CODEC-220: ----------------------- Summary: Fluent interface for DigestUtils (was: Possible more OO-like approach to DigestUtils) > Fluent interface for DigestUtils > -------------------------------- > > Key: CODEC-220 > URL: https://issues.apache.org/jira/browse/CODEC-220 > Project: Commons Codec > Issue Type: Improvement > Reporter: Sebb > Assignee: Sebb > Attachments: MessageDigestHelper.java, MessageDigestHelper.java > > > 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)