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

Sebb commented on IO-455:
-------------------------

Why not use the following instead?

{code}
new ByteArrayInputStream(String.getBytes([Charset]))
{code}

>  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)

Reply via email to