[
https://issues.apache.org/jira/browse/IO-404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13805834#comment-13805834
]
BELUGA BEHR commented on IO-404:
--------------------------------
It is my understanding that this method is new to 2.5 so a change now would not
be breaking compatibility. Am I reading things incorrectly?
> [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)