commons-issues mailing list archives

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


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:
>             Project: Commons IO
>          Issue Type: Improvement
>          Components: Streams/Writers
>    Affects Versions: 2.4
>            Reporter: Marco Brandizi
> 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

View raw message