commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IO-158) ReaderInputStream implementation
Date Tue, 11 Mar 2008 14:22:46 GMT

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

Jukka Zitting commented on IO-158:
----------------------------------

Design-wise I prefer the iBatis/XMLBeans alternatives as they use an OutputStreamWriter instead
of new String(...).getBytes(...) for translating characters to bytes.

Functionally they are the same, but the OutputStreamWriter approach is nicely analogous with
the reverse stream designs we've been discussing in IO-71. A ReaderInputStream is simply a
reversed OutputStreamWriter.

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


Mime
View raw message