You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2008/05/28 23:18:45 UTC
[jira] Updated: (IO-158) ReaderInputStream implementation
[ https://issues.apache.org/jira/browse/IO-158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen updated IO-158:
-------------------------------
Attachment: IO-158.patch.txt
I've built an implementation of both ReaderInputStream and WriterOutputStream using CharsetEncoder/CharsetDecoder, i.e. without the need for Piped*Streams. ReaderInputStream passes org.apache.tools.ant.util.ReaderInputStreamTest. Please review/test the code. The only thing that is still missing is a unit test for WriterOutputStream.
> ReaderInputStream implementation
> --------------------------------
>
> Key: IO-158
> URL: https://issues.apache.org/jira/browse/IO-158
> Project: Commons IO
> Issue Type: Wish
> Reporter: Andreas Veithen
> Priority: Minor
> Attachments: IO-158.patch.txt
>
>
> The standard Java class InputStreamReader converts a Reader into an InputStream. In some cases it is necessary to do the reverse, i.e. to convert a Reader into an InputStream. Several frameworks and libraries have their own implementation of this functionality (google for "ReaderInputStream"). Among these are at least four Apache projects: Ant, iBatis, James and XMLBeans. Commons IO would be a good place to share a common implementation.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.