commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Brandizi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IO-455) ReaderInputStream doesn't support marking
Date Sun, 07 Sep 2014 07:59:28 GMT

    [ https://issues.apache.org/jira/browse/IO-455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14124829#comment-14124829
] 

Marco Brandizi commented on IO-455:
-----------------------------------

Hi Sebb, thank you for the quick head-up. My use case is a third-party library that wants
an InputStream with markSupported() == true, and I need to send it nothing but a String. I
completely missed the BufferedInputStream and didn't imagine the problems you describe. Sorry
for having bothered and thank you again!

>  ReaderInputStream doesn't support marking
> ------------------------------------------
>
>                 Key: IO-455
>                 URL: https://issues.apache.org/jira/browse/IO-455
>             Project: Commons IO
>          Issue Type: Improvement
>          Components: Streams/Writers
>    Affects Versions: 2.4
>            Reporter: Marco Brandizi
>
> org.apache.commons.io.input.ReaderInputStream doesn't override markSupported() and mark(),
which essentially means it doesn't support marking at all. That doesn't seem necessary, since
it could just delegate it to the base reader. Indeed, I've discovered this problem while wrapping
a StringReader (which instead supports marking).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message