You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "BELUGA BEHR (JIRA)" <ji...@apache.org> on 2013/10/25 23:32:34 UTC

[jira] [Created] (IO-404) [IO] Don't buffer ByteArrayInputStream

BELUGA BEHR created IO-404:
------------------------------

             Summary: [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
             Fix For: 2.5


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)