Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 86CC810739 for ; Fri, 25 Oct 2013 23:54:32 +0000 (UTC) Received: (qmail 43732 invoked by uid 500); 25 Oct 2013 23:54:31 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 43639 invoked by uid 500); 25 Oct 2013 23:54:31 -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 43602 invoked by uid 99); 25 Oct 2013 23:54:31 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Oct 2013 23:54:31 +0000 Date: Fri, 25 Oct 2013 23:54:31 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (IO-404) [IO] Don't buffer ByteArrayInputStream MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IO-404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13805799#comment-13805799 ] Sebb edited comment on IO-404 at 10/25/13 11:54 PM: ---------------------------------------------------- I agree that BIS does not offer any new methods compared with IS. However, it does provide some protected variables which are not in BAIS. -Also, changing the return type would break binary compatibility, and would probably affect source compatibility (would still true even if there were no protected variables involved).- Note: similar considerations apply to ByteArrayOutputStream. was (Author: sebb@apache.org): I agree that BIS does not offer any new methods compared with IS. However, it does provide some protected variables which are not in BAIS. Also, changing the return type would break binary compatibility, and would probably affect source compatibility (would still true even if there were no protected variables involved). Note: similar considerations apply to ByteArrayOutputStream. > [IO] Don't buffer ByteArrayInputStream > -------------------------------------- > > Key: IO-404 > URL: https://issues.apache.org/jira/browse/IO-404 > Project: Commons IO > Issue Type: Improvement > Components: Utilities > Affects Versions: 2.5 > Reporter: BELUGA BEHR > Priority: Minor > > The new method: > public static BufferedInputStream buffer(final InputStream inputStream) > Is there some way to detect when the InputStream is a ByteArrayInputStream and to just return itself... or requiring a light wrapper? Perhaps the method signature should be changed to just return an InputStream instead of a specifying BufferedInputStream. What benefit does that give you anyway? -- This message was sent by Atlassian JIRA (v6.1#6144)